什么是特殊的gitlab-ci-token用户? [英] What is the special gitlab-ci-token user?

查看:981
本文介绍了什么是特殊的gitlab-ci-token用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

gitlab的容器注册表文档( https://gitlab.com/help/container_registry/README .md )提供了一个配置示例:

The docs for gitlab's container registry (https://gitlab.com/help/container_registry/README.md) provide a config example with this instruction:

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

这个说明:

您必须使用特殊gitlab-ci-token用户的凭据,其密码存储在$ CI_BUILD_TOKEN中才能推送到连接到项目的注册表。这可以让您自动构建和部署您的Docker图像。

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

I cannot find any documentation about this special gitlab-ci-token user, nor about the $CI_BUILD_TOKEN var.

什么是这个特殊用户?是否自动提供?是否必须在某处定义?应该给 $ CI_BUILD_TOKEN var?

What is this special user? Is it automatically available? Does it have to be defined somewhere? What value should be given to the $CI_BUILD_TOKEN var?

推荐答案

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

Gitlab acts as an authentication provider for the registry. gitlab-ci-token is a user automatically created for you. CI_BUILD_TOKEN is set automatically for each build by Gitlab-CI

这篇关于什么是特殊的gitlab-ci-token用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆