Skip to content

Commit 93a5fbd

Browse files
authored
Fix tag comparison in build script (#9110)
1 parent 2758690 commit 93a5fbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/build_image_proxy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ steps:
1616
echo 'Only deploy from the dartlang-pub project'
1717
exit 1;
1818
fi
19-
if [[ "$TAG_NAME" != image_proxy-* ]]; then
19+
if [[ ! "$TAG_NAME" =~ ^image_proxy-.*$ ]]; then
2020
echo 'This script is only intended for use on image_proxy-<version> tags'
21+
echo 'Current tag': $TAG_NAME
2122
exit 1;
2223
fi
2324
docker build -t us-central1-docker.pkg.dev/$PROJECT_ID/image-proxy/image-proxy:$TAG_NAME . --file pkg/image_proxy/Dockerfile

0 commit comments

Comments
 (0)