Skip to content

Commit

Permalink
chore: new release automation (with hotfix) (#96)
Browse files Browse the repository at this point in the history
# Ticket 🎫

This closes dot-base/deployments#192

# Description 📖
This updates the actions for the new release process with hotfixes.
  • Loading branch information
velramiir committed Nov 15, 2023
1 parent 0de4dae commit 2ab8feb
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 43 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build-docker-image-manually.yml

This file was deleted.

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 }}
1 change: 1 addition & 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 Down

0 comments on commit 2ab8feb

Please sign in to comment.