From ef49765dae593667529fa838171a6b1cc0294d8c Mon Sep 17 00:00:00 2001 From: anton Date: Wed, 3 Apr 2024 14:26:14 +0200 Subject: [PATCH] Changed user to repository_owner and tuned version calculating --- .github/workflows/package_and_push_helm_chart.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package_and_push_helm_chart.yaml b/.github/workflows/package_and_push_helm_chart.yaml index 7461ce20d..e0e5c188a 100644 --- a/.github/workflows/package_and_push_helm_chart.yaml +++ b/.github/workflows/package_and_push_helm_chart.yaml @@ -5,6 +5,7 @@ on: branches: - dev - release + - devops/FAIRSPC-23_deployment workflow_dispatch: inputs: name: @@ -33,15 +34,19 @@ jobs: - name: Prepare version run: | VERSION=$(cat ./VERSION) + echo "Helm charts version to be deployed (preliminary-0): $VERSION" BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} - if [ $BRANCH != "release" ] - then + echo "Building images from the branch: $BRANCH" + if [ $BRANCH != "release" ]; then VERSION=$VERSION-SNAPSHOT fi + echo "Helm charts version to be deployed (preliminary): $VERSION" # override version of custom input is provided + echo "${{ github.event.inputs.version != '' }}" if [ "${{ github.event.inputs.version != '' }}" ]; then VERSION=${{ github.event.inputs.version }} fi + echo "Helm charts version to be deployed: $VERSION" echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Push Helm chart to repository