From 6f76f66847c5ab0e03d3961a783dc35c334d73f8 Mon Sep 17 00:00:00 2001 From: Ben Rubchinsky Date: Sun, 11 Feb 2024 17:00:21 +0200 Subject: [PATCH] Use tag name for chart app version field --- .github/workflows/operator.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/operator.yaml b/.github/workflows/operator.yaml index 36dd845a..6b35c6dd 100644 --- a/.github/workflows/operator.yaml +++ b/.github/workflows/operator.yaml @@ -36,10 +36,11 @@ jobs: - name: Create and push chart if: github.ref_type == 'tag' run: | + TAG_NAME=${GITHUB_REF#refs/tags/} VERSION=${{ steps.meta.outputs.tags }} REPO=cbartifactory cd ${{ github.workspace }}/charts/cbcontainers-operator/cbcontainers-operator-chart - helm package . --version $VERSION --app-version $VERSION + helm package . --version $VERSION --app-version $TAG_NAME helm push *.tgz oci://registry-1.docker.io/$REPO cd ${{ github.workspace }}/charts/cbcontainers-agent/cbcontainers-agent-chart helm package . --version $VERSION --app-version $VERSION