From 4907f8104d9019b45e2c8826279e6cf77e200237 Mon Sep 17 00:00:00 2001 From: Alex Shevchuk Date: Tue, 19 Aug 2025 02:53:10 +0300 Subject: [PATCH] 34 --- .gitea/workflows/deploy_staging.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy_staging.yaml b/.gitea/workflows/deploy_staging.yaml index 42badb3..c812e7d 100644 --- a/.gitea/workflows/deploy_staging.yaml +++ b/.gitea/workflows/deploy_staging.yaml @@ -63,7 +63,7 @@ jobs: id: git-metadata run: | echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - echo "GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "none")" >> $GITHUB_OUTPUT + echo "GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'none')" >> $GITHUB_OUTPUT - name: Login to Docker Registry run: | @@ -77,6 +77,7 @@ jobs: echo "Building image for ${{ inputs.environment }} environment" echo "Git tag : ${{ steps.git-metadata.outputs.GIT_TAG }}" echo "Git sha : ${{ steps.git-metadata.outputs.GIT_SHA }}" + echo "Image tag : ${{ steps.git-metadata.outputs.GIT_TAG != 'none' && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }}" - name: Install dependencies run: |