Gitlab DOCKER_AUTH_CONFIG with multiple robot accounts from the same registry
I use Harbor as a private Registry for my Docker images, and I store my images in different projects (ex: myproject1, myproject2, etc). Then I create one robot account in my project "myproject1" and one robot account in "myproject2" Finally, I use the DOCKER_AUTH_CONFIG variable in Gitlab to set up robot accounts, such as : { "auths": { "myharborregistry/myproject1": { "auth": "base64.... token 1 created in myproject1" }, { "myharborregistry/myproject2": { "auth": "base64.... token 2 created in myproject2" } } } The problem is that with this configuration, Gitlab randomly takes one of the 2 au
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.