Skip to content

Commit 55f0bdc

Browse files
authored
Fix docker tag during upload as well (flutter#46252)
In flutter#46035, we fixed the docker tag to be a legal tag during build. This PR makes the corresponding change to the tag during upload. Without this, we build the right tag, but then we try to upload the wrong tag.
1 parent 9cb9734 commit 55f0bdc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dev/ci/docker_linux/docker_push.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55

66
TAG="${CIRRUS_TAG:-latest}"
77

8-
sudo docker push "gcr.io/flutter-cirrus/build-flutter-image:$TAG"
8+
# Convert "+" to "-" to make hotfix tags legal Docker tag names.
9+
# See https://docs.docker.com/engine/reference/commandline/tag/
10+
TAG=${TAG/+/-}
911

12+
sudo docker push "gcr.io/flutter-cirrus/build-flutter-image:$TAG"

0 commit comments

Comments
 (0)