It seems I can use the :tag action to tag an image with another repository's name, but when I run :push only the authentication from the "base image" is used. Example:
When I run env TAG=master dobi project:tag three images are tagged, the first two with the registry.gitlab.com/project/math as image name and the third as project.azurecr.io/math:master.
However on push action the authentication is only looked at against registry.gitlab.com/project/math and so the last push does not go through.
I think we should check the authorization for each individual tag so we can push to multiple repositories.
It seems I can use the
:tag
action to tag an image with another repository's name, but when I run:push
only the authentication from the "base image" is used. Example:When I run
env TAG=master dobi project:tag
three images are tagged, the first two with theregistry.gitlab.com/project/math
as image name and the third asproject.azurecr.io/math:master
.However on push action the authentication is only looked at against
registry.gitlab.com/project/math
and so the last push does not go through.I think we should check the authorization for each individual tag so we can push to multiple repositories.