From 9a46388f5ee1231b1017d1274c85b1c53c688893 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/package_and_push_helm_chart.yaml b/.github/workflows/package_and_push_helm_chart.yaml index 7461ce20d..e6ac18e3d 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,21 @@ 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/}} + 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 "1 ${{ github.event.inputs.version != '' }}" + echo "2 "${{ 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