From d7414c6f21572feee7078f4aae9e55313ee0174c Mon Sep 17 00:00:00 2001 From: Erik Groh Date: Sat, 14 Dec 2024 13:17:36 +0100 Subject: [PATCH] Working on helmchart publish --- .github/workflows/helm.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index d8e8b1b..b64b6ca 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -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/helm-push@4.2.0 - with: - useOCIRegistry: true - registry-url: oci://ghcr.io/${{ github.repository }} - username: bsord - access-token: ${{ secrets.GITHUB_TOKEN }} - force: false - chart-folder: helm \ No newline at end of file + - 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 \ No newline at end of file