We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56d317d + 787ebfa commit f2e68feCopy full SHA for f2e68fe
.github/workflows/build-image.yaml
@@ -22,10 +22,8 @@ jobs:
22
echo $version_pattern;
23
if [[ ${GITHUB_REF} =~ $version_pattern ]]; then
24
echo "::set-output name=tag::${GITHUB_REF##*/}"
25
- elif [ ${GITHUB_REF##*/} = "main" ]; then
26
- echo "::set-output name=tag::stg-$CI_COMMIT_SHORT_SHA"
27
else
28
- echo "::set-output name=tag::$CI_COMMIT_SHORT_SHA"
+ echo "::set-output name=tag::${GITHUB_REF##*/}-$CI_COMMIT_SHORT_SHA"
29
fi
30
env:
31
version_pattern: "tags\\/v[0-9]+\\.[0-9]+\\.[0-9]+"
0 commit comments