什么是特殊的 gitlab-ci-token 用户?

2024-01-15

gitlab 容器注册表的文档(https://gitlab.com/help/container_registry/README.md https://gitlab.com/help/container_registry/README.md) 提供带有此指令的配置示例:

- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.example.com

和这个解释:

You have to use the credentials of the special gitlab-ci-token user with its password stored in $CI_BUILD_TOKEN in order to push to the Registry connected to your project. This allows you to automated building and deployment of your Docker images.

我找不到任何有关此特殊的文档gitlab-ci-token用户,也不关于$CI_BUILD_TOKEN var.

这个特殊用户是什么?是自动可用的吗?它必须在某个地方定义吗?应该赋予什么值$CI_BUILD_TOKEN var?


Gitlab 充当注册表的身份验证提供者。gitlab-ci-token是自动为您创建的用户。CI_BUILD_TOKEN由 Gitlab-CI 为每个构建自动设置

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

什么是特殊的 gitlab-ci-token 用户? 的相关文章

随机推荐