[CNG] Mirrored images not pushed on tag/default branch
Summary
In gitlab-org/build/CNG!712 (merged), we configured CI to mirror the toolbox
image to task-runner
for compatibility purposes. However, the logic in build.sh
didn't push the mirrored tags for some scenarios, including when CI was run on a tag/default branch.
Current behavior
Mirrored images not pushed on tag/default branch.
Expected behavior
Mirrored images are pushed on tag/default branch.
Relevant logs
https://gitlab.com/gitlab-org/build/CNG/-/jobs/1474566728
Note that the last step is supposed to change the image name to task-runner
, but it still says The push refers to repository [registry.gitlab.com/gitlab-org/build/cng/gitlab-toolbox-ce]
.