Skip to content

Commit

Permalink
chore(release): v5.0.2
Browse files Browse the repository at this point in the history
### 🧹 Chore

* add manual docker build action ([#92](#92)) ([a1023ca](a1023ca))
* new release automation (with hotfix) ([#96](#96)) ([2ab8feb](2ab8feb))
* Rename lint and test scripts ([#94](#94)) ([0de4dae](0de4dae))
  • Loading branch information
dotbase-bot authored Nov 16, 2023
2 parents 533a261 + 2ab8feb commit 1ee7485
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 17 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 🐳 Build Docker Image

on:
workflow_dispatch:
inputs:
ref:
type: string
required: true
description: "The ref to build the image from. (usually this is a release tag, e.g. v4.0.1)"
architecture:
type: choice
required: true
default: amd64
options:
- amd64
- arm64
- both
imageTag:
type: string
required: true
description: "The tag for the docker image. (usually a version tag without leading 'v')"

jobs:
build-docker-image:
name: Build Docker Image for ${{ inputs.imageTag }}
uses: dot-base/.github/.github/workflows/build-docker-image.yml@main
with:
ref: ${{ inputs.ref }}
architecture: ${{ inputs.architecture }}
imageTag: ${{ inputs.imageTag }}
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
CR_PAT: ${{ secrets.CR_PAT }}
20 changes: 20 additions & 0 deletions .github/workflows/create-hotfix-release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 🚒 Create Hotfix Release PR

on:
workflow_dispatch:
inputs:
branch:
type: string
description: The hotfix branch with the fix that shall be released.
required: true
default: fix/

jobs:
create-release-PR:
name: Create a PR from the hotfix branch into 'release'
uses: dot-base/.github/.github/workflows/create-release-pr.yml@main
with:
branch: ${{ inputs.branch }}
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
14 changes: 0 additions & 14 deletions .github/workflows/create-pre-release.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/create-sync-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 🔁 Create Sync PR (manual version)

on: workflow_dispatch

jobs:
create-release-pr:
name: Create Sync PR
uses: dot-base/.github/.github/workflows/create-sync-pr.yml@main
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
2 changes: 2 additions & 0 deletions .github/workflows/manage-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- release
- 'sync/*'
pull_request_review:
types:
- submitted
Expand All @@ -17,3 +18,4 @@ jobs:
secrets:
GH_BOT_USER: ${{ secrets.GH_BOT_USER }}
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
CR_PAT: ${{ secrets.CR_PAT }}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"debug": "nodemon --watch 'src/**/*' -e ts --exec 'npm run lint && npm run prettier && npm run debugger'",
"debug-brk": "nodemon --watch 'src/**/*' -e ts --exec 'npm run lint && npm run prettier && npm run debugger-brk'",
"lint": "eslint 'src/**/*.ts' 'tests/**/*.ts' --fix",
"lint-without-fix": "eslint 'src/**/*.ts' 'tests/**/*.ts'",
"test": "jest --passWithNoTests",
"lint:ci": "eslint 'src/**/*.ts' 'tests/**/*.ts'",
"test:ci": "jest --passWithNoTests",
"prettier": "prettier --write 'src/**/*.ts' 'tests/**/*.ts'",
"debugger": "NODE_ENV=development node --require ts-node/register --inspect=0.0.0.0:9229 src/server.ts",
"debugger-brk": "NODE_ENV=development node --require ts-node/register --inspect-brk=0.0.0.0:9229 src/server.ts",
Expand Down Expand Up @@ -60,4 +60,4 @@
"prettier": {
"printWidth": 100
}
}
}

0 comments on commit 1ee7485

Please sign in to comment.