Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: new release automation (with hotfix) #96

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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