summaryrefslogtreecommitdiff
path: root/doc/user/project/deploy_tokens
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-04-24 08:06:49 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-04-24 08:06:49 +0000
commit92cb6d63543c75ec39570699ffbe958845472da9 (patch)
tree167eb079481ecec3d6d483145d23c8f27c4b96ba /doc/user/project/deploy_tokens
parent8a726a0842f4a8e5b86d2a44c7c16219632f4249 (diff)
parent82d66ac96d03a4caf6d4c3c86c51009e2a4fe9fb (diff)
downloadgitlab-ce-92cb6d63543c75ec39570699ffbe958845472da9.tar.gz
Merge branch '44447-expose-deploy-token-to-ci-cd' into 'master'
Expose Deploy Token info as environment variables to CI/CD jobs Closes #44447 See merge request gitlab-org/gitlab-ce!18414
Diffstat (limited to 'doc/user/project/deploy_tokens')
-rw-r--r--doc/user/project/deploy_tokens/index.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/user/project/deploy_tokens/index.md b/doc/user/project/deploy_tokens/index.md
index 34154b69d2d..7a8b3c75690 100644
--- a/doc/user/project/deploy_tokens/index.md
+++ b/doc/user/project/deploy_tokens/index.md
@@ -71,6 +71,16 @@ docker login registry.example.com -u <username> -p <deploy_token>
Just replace `<username>` and `<deploy_token>` with the proper values. Then you can simply
pull images from your Container Registry.
+### GitLab Deploy Token
+
+> [Introduced][ce-18414] in GitLab 10.8.
+
+There's a special case when it comes to Deploy Tokens, if a user creates one
+named `gitlab-deploy-token`, the name and token of the Deploy Token will be
+automatically exposed to the CI/CD jobs as environment variables: `CI_DEPLOY_USER` and
+`CI_DEPLOY_PASSWORD`, respectively.
+
[ce-17894]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17894
[ce-11845]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11845
+[ce-18414]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18414
[container registry]: ../container_registry.md