Skip to content

Commit

Permalink
Add action to release new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sergicastro committed Oct 1, 2024
1 parent daab2f6 commit 9c8b19a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/make-release.yaml
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 }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Publish Release

on:
push:
Expand All @@ -8,7 +8,7 @@ env:
GOPROXY: https://proxy.golang.org

jobs:
docker-hub:
docker-hub-push:
runs-on: ubuntu-latest
env:
IMG: tetrate/kubegres:${{ github.ref_name }}
Expand Down

0 comments on commit 9c8b19a

Please sign in to comment.