Helm package and push #2
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
name: Helm package and push | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'feature/helm-chart' | |
paths: | |
- 'helm/**' | |
workflow_dispatch: | |
jobs: | |
helm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set environment variables | |
id: set-variables | |
run: | | |
echo "REPOSITORY=registry.docker.io/erikmagkekse/ziti-edge-proxy" >> "$GITHUB_OUTPUT" | |
echo "VERSION=$(yq -r .version ./helm/Chart.yaml)" >> "$GITHUB_OUTPUT" | |
- name: Package and push helm chart | |
run: | | |
helm package ./helm/ --version ${{ steps.set-variables.outputs.VERSION }} | |
helm push ./ziti-edge-proxy-${{ steps.set-variables.outputs.VERSION }}.tgz oci://${{ steps.set-variables.outputs.REPOSITORY }}/charts |