Skip to content
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
14 changes: 12 additions & 2 deletions .github/workflows/helm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@ on:
release:
types:
- published
workflow_call:
inputs:
tag_name:
required: true
type: string
secrets:
HELM_PUBLISH_TOKEN:
required: true

jobs:
publish:
name: Package and publish charts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
ref: ${{ inputs.tag_name || github.event.release.tag_name }}

- name: Install Helm
uses: azure/setup-helm@v4
Expand All @@ -20,7 +30,7 @@ jobs:

- name: Update and package all charts
run: |
TAG="${{ github.event.release.tag_name }}"
TAG="${{ inputs.tag_name || github.event.release.tag_name }}"
Comment thread
bosbaber marked this conversation as resolved.
VERSION="${TAG#v}"
APP_VERSION="$TAG"
mkdir -p /tmp/helm-package
Expand All @@ -43,7 +53,7 @@ jobs:
cp /tmp/helm-package/*.tgz charts-branch/
cd charts-branch
helm repo index . \
--url https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
--url https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name || 'testnet' }}

- name: Commit and push to charts branch
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

helm-publish:
name: Publish Helm charts
needs: release
if: needs.release.outputs.new_release_published == 'true'
uses: ./.github/workflows/helm-publish.yml
with:
tag_name: v${{ needs.release.outputs.new_release_version }}
secrets:
HELM_PUBLISH_TOKEN: ${{ secrets.HELM_PUBLISH_TOKEN }}

publish:
name: Publish Docker images
runs-on: ubuntu-latest
Expand Down
Loading