gitlab 容器注册表的文档 ( 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 什么值?