Skip to content

Commit 4aaa974

Browse files
authored
ignore others than v1.* tags (#2211)
1 parent 6021fec commit 4aaa974

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudbuild.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ steps:
2828
# appropriately for the image before running make
2929
/buildx-entrypoint version
3030
31+
REALTAG=$(git describe --tags --always --dirty --match 'v1.*')
3132
make push-multiarch-images \
3233
REGISTRY=gcr.io/$PROJECT_ID \
33-
VERSION=$_SHORT_TAG
34+
VERSION=$REALTAG
3435
substitutions:
3536
# _GIT_TAG will be filled with a git-based tag for the image, of the form
3637
# vYYYYMMDD-hash, and can be used as a substitution

0 commit comments

Comments
 (0)