【发布时间】:2016-09-24 21:13:56
【问题描述】:
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 赋予什么值?
【问题讨论】:
标签: docker gitlab gitlab-ci gitlab-ci-runner