Skip to content

Commit

Permalink
Working on helmchart publish
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmagkekse committed Dec 14, 2024
1 parent 4019e3a commit d7414c6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ on:
- 'feature/helm-chart'
paths:
- 'helm/**'
workflow_dispatch:

jobs:
helm:
runs-on: ubuntu-latest
steps:
- name: Push Helm chart to Github Registry
uses: bsord/[email protected]
with:
useOCIRegistry: true
registry-url: oci://ghcr.io/${{ github.repository }}
username: bsord
access-token: ${{ secrets.GITHUB_TOKEN }}
force: false
chart-folder: helm
- 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

0 comments on commit d7414c6

Please sign in to comment.