diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml new file mode 100644 index 0000000..11d58d7 --- /dev/null +++ b/.github/workflows/build-docker-image.yml @@ -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 }} diff --git a/.github/workflows/create-hotfix-release-pr.yml b/.github/workflows/create-hotfix-release-pr.yml new file mode 100644 index 0000000..8cd57e4 --- /dev/null +++ b/.github/workflows/create-hotfix-release-pr.yml @@ -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 }} diff --git a/.github/workflows/create-pre-release.yml b/.github/workflows/create-pre-release.yml deleted file mode 100644 index bdb27d7..0000000 --- a/.github/workflows/create-pre-release.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Create Pre-Release - -on: - pull_request: - branches: - - main - types: [closed] - -jobs: - create-pre-release: - name: Create Pre-Release - uses: dot-base/.github/.github/workflows/create-pre-release.yml@main - secrets: - CR_PAT: ${{ secrets.CR_PAT }} diff --git a/.github/workflows/create-sync-pr.yml b/.github/workflows/create-sync-pr.yml new file mode 100644 index 0000000..3c4723c --- /dev/null +++ b/.github/workflows/create-sync-pr.yml @@ -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 }} diff --git a/.github/workflows/manage-pr.yml b/.github/workflows/manage-pr.yml index 7e48295..ea28f5e 100644 --- a/.github/workflows/manage-pr.yml +++ b/.github/workflows/manage-pr.yml @@ -5,6 +5,7 @@ on: branches: - main - release + - 'sync/*' pull_request_review: types: - submitted @@ -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 }} diff --git a/package.json b/package.json index 8d2f999..70a9ac1 100644 --- a/package.json +++ b/package.json @@ -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", @@ -60,4 +60,4 @@ "prettier": { "printWidth": 100 } -} +} \ No newline at end of file