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