From ae2fbfbc632da4e47a2cae0a05639c45e1a848da Mon Sep 17 00:00:00 2001 From: Ben Rubchinsky Date: Sun, 11 Feb 2024 17:06:43 +0200 Subject: [PATCH 1/3] test git ref --- .github/workflows/operator.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/operator.yaml b/.github/workflows/operator.yaml index 6b35c6dd..2d603147 100644 --- a/.github/workflows/operator.yaml +++ b/.github/workflows/operator.yaml @@ -36,6 +36,7 @@ jobs: - name: Create and push chart if: github.ref_type == 'tag' run: | + echo $GITHUB_REF TAG_NAME=${GITHUB_REF#refs/tags/} VERSION=${{ steps.meta.outputs.tags }} REPO=cbartifactory From b36f8b29031c60bf27f29e2a26ce5c1da7ff54d6 Mon Sep 17 00:00:00 2001 From: Ben Rubchinsky Date: Sun, 11 Feb 2024 17:09:19 +0200 Subject: [PATCH 2/3] test git ref 2 --- .github/workflows/operator.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/operator.yaml b/.github/workflows/operator.yaml index 2d603147..ea0162a8 100644 --- a/.github/workflows/operator.yaml +++ b/.github/workflows/operator.yaml @@ -36,9 +36,11 @@ jobs: - name: Create and push chart if: github.ref_type == 'tag' run: | - echo $GITHUB_REF + echo "how "$GITHUB_REF TAG_NAME=${GITHUB_REF#refs/tags/} + echo "what "$TAG_NAME VERSION=${{ steps.meta.outputs.tags }} + echo "and "$VERSION REPO=cbartifactory cd ${{ github.workspace }}/charts/cbcontainers-operator/cbcontainers-operator-chart helm package . --version $VERSION --app-version $TAG_NAME From 0eaa1c0065490c6a0df154d74225b76e564e48c5 Mon Sep 17 00:00:00 2001 From: Ben Rubchinsky Date: Sun, 11 Feb 2024 17:12:31 +0200 Subject: [PATCH 3/3] Use tag name --- .github/workflows/operator.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/operator.yaml b/.github/workflows/operator.yaml index ea0162a8..6b35c6dd 100644 --- a/.github/workflows/operator.yaml +++ b/.github/workflows/operator.yaml @@ -36,11 +36,8 @@ jobs: - name: Create and push chart if: github.ref_type == 'tag' run: | - echo "how "$GITHUB_REF TAG_NAME=${GITHUB_REF#refs/tags/} - echo "what "$TAG_NAME VERSION=${{ steps.meta.outputs.tags }} - echo "and "$VERSION REPO=cbartifactory cd ${{ github.workspace }}/charts/cbcontainers-operator/cbcontainers-operator-chart helm package . --version $VERSION --app-version $TAG_NAME