gitlab私有存储库将在CI/CD变量中包括多个auth令牌
参考 gitlab文档
我可以使用一种配置来访问一个配置私人Docker Image Repo。
{
"auths": {
"registry.example.com:5000": {
"auth": "base64.... token"
}
}
}
这将设置为DOCKER_AUTH_CONFIG变量,但是CI/CD的阶段可以访问具有不同的auth令牌的两个不同的私人docker存储库。
是否可以包含一个以上的身份令牌,如下
{
"auths": {
"registry1.com:5000": {
"auth": "base64.... token 1"
},
{
"registry2.com:5000": {
"auth": "base64.... token 2"
}
}
}
With reference to the Gitlab document
I can use one configuration to access on private docker image repo.
{
"auths": {
"registry.example.com:5000": {
"auth": "base64.... token"
}
}
}
this is set to DOCKER_AUTH_CONFIG variable, but the CI/CD has a stage which access two different private Docker repo, which have different Auth token.
Is it possible to include more than one auth token, like below
{
"auths": {
"registry1.com:5000": {
"auth": "base64.... token 1"
},
{
"registry2.com:5000": {
"auth": "base64.... token 2"
}
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,它完全可以。如文档:
Yes, it works exactly like that. As stated in the documentation: