From 0cf4704fd28bb3df9d1999b289c99df23f5686cc Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Fri, 18 Oct 2024 14:41:56 +0200 Subject: [PATCH] . --- .gitea/workflows/buildPush.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/buildPush.yaml b/.gitea/workflows/buildPush.yaml index 36a6a04..d3ee175 100644 --- a/.gitea/workflows/buildPush.yaml +++ b/.gitea/workflows/buildPush.yaml @@ -6,7 +6,7 @@ on: tags: - '**' # Push events to every tag including hierarchical tags like v1.0/beta jobs: - lint-test: + package-helm: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -17,6 +17,11 @@ jobs: with: version: v3.14.4 + - name: Install prereq + run: | + apt update + apt install yq -y + - name: build helm package shell: bash env: @@ -25,8 +30,10 @@ jobs: REPO_HOST: ${{ vars.REPO_HOST }} run: | REPO_PATH=$(git rev-parse --show-toplevel) + CHART_NAME=$(yq .version Chart.yaml) + CHART_VERSION=$(yq .version Chart.yaml) mkdir /tmp/build cd /tmp/build helm package $REPO_PATH helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST - helm push *.tgz + helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm