forked from reactive-tech/kubegres
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
daab2f6
commit 9c8b19a
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Create Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to release in the format v0.0.0-tetrate-v0' | ||
required: true | ||
branch: | ||
description: 'Branch to release from. Like release-v0.0.0' | ||
required: true | ||
|
||
jobs: | ||
update-kubegres-yaml: | ||
runs-on: ubuntu-latest | ||
env: | ||
IMG: tetrate/kubegres:${{ github.event.inputs.version }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
- name: Update kubegres.yaml | ||
run: make deploy | ||
- name: Create and push the new tag | ||
run: | | ||
git add kubegres.yaml config/manager/kustomization.yaml | ||
git commit -m "pre-release-tag: Update kubegres.yaml to version ${{ github.event.inputs.version }}" | ||
git push origin ${{ github.event.inputs.branch }} | ||
git tag ${{ github.event.inputs.version }} | ||
git push origin ${{ github.event.inputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters