chore(helm): bump helm-pep and pep chart versions to 0.1.1 - testing CI #1
Workflow file for this run
This file contains hidden or 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
| --- | |
| name: "Publish Helm Chart - nuts-knooppunt" | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| # cancel build action if superseded by new commit on same branch (not needed for tag builds, leaving it in when it also builds on branches) | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish-knooppunt: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: "3.14.0" | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract version from tag | |
| id: version | |
| run: | | |
| if [[ "${{ github.ref }}" == refs/tags/v* ]]; then | |
| VERSION=${GITHUB_REF#refs/tags/v} | |
| else | |
| # For workflow_dispatch, use version from Chart.yaml | |
| VERSION=$(grep "^version:" helm/nuts-knooppunt/Chart.yaml | awk '{print $2}') | |
| fi | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| echo "Extracted version: $VERSION" | |
| - name: Update nuts-knooppunt chart version | |
| run: | | |
| VERSION="${{ steps.version.outputs.version }}" | |
| # Update nuts-knooppunt chart version/appVersion from git tag | |
| sed -i "s/^version:.*/version: $VERSION/" helm/nuts-knooppunt/Chart.yaml | |
| sed -i "s/^appVersion:.*/appVersion: \"$VERSION\"/" helm/nuts-knooppunt/Chart.yaml | |
| echo "Updated nuts-knooppunt chart to version $VERSION" | |
| - name: Update chart dependencies | |
| run: | | |
| cd helm/nuts-knooppunt | |
| # Pull dependencies (helm-fhir, helm-pep, nuts-node-chart) from their registries | |
| helm dependency update | |
| - name: Package and push nuts-knooppunt chart | |
| run: | | |
| # Package nuts-knooppunt (with resolved dependencies) | |
| helm package helm/nuts-knooppunt -d .helm-packages | |
| # Push to GHCR | |
| helm push .helm-packages/helm-nuts-knooppunt-*.tgz oci://ghcr.io/${{ github.repository_owner }} | |
| - name: Output published chart | |
| run: | | |
| VERSION="${{ steps.version.outputs.version }}" | |
| echo "Published Helm chart:" | |
| echo " - oci://ghcr.io/${{ github.repository_owner }}/helm-nuts-knooppunt:$VERSION" | |
| echo "" | |
| echo "Install with:" | |
| echo " helm install my-knooppunt oci://ghcr.io/${{ github.repository_owner }}/helm-nuts-knooppunt --version $VERSION" |