Release #15
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: Release | |
| on: | |
| # tagged manually | |
| push: | |
| tags: ["v*"] | |
| # dispatch from tagpr.yaml workflow | |
| workflow_dispatch: | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| env: | |
| IMG: ghcr.io/${{github.repository}}:${{github.ref_name}} | |
| IMG_LATEST: ghcr.io/${{github.repository}}:latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| # Publish Container Image | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Docker build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ env.IMG }}, ${{ env.IMG_LATEST }} | |
| # Publish Helm Chart | |
| - name: strip 'v' from tag for chart version | |
| id: tag | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const tag = process.env.GITHUB_REF_NAME | |
| const no_v = tag.replace('v', '') | |
| core.setOutput('no_v', no_v) | |
| - name: Publish Helm charts | |
| uses: stefanprodan/helm-gh-pages@master | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| app_version: ${{steps.tag.outputs.no_v}} | |
| chart_version: ${{steps.tag.outputs.no_v}} |