Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
82eba749
Commit
82eba749
authored
Mar 16, 2021
by
Suzanne Selhorn
Committed by
Achilleas Pipinellis
Mar 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made deploy token lowercase
parent
9a65f0bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
doc/user/project/deploy_tokens/index.md
doc/user/project/deploy_tokens/index.md
+18
-18
No files found.
doc/user/project/deploy_tokens/index.md
View file @
82eba749
...
...
@@ -5,7 +5,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
type
:
howto
---
# Deploy
T
okens
# Deploy
t
okens
> - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/17894) in GitLab 10.7.
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/199370) from **Settings > Repository** in GitLab 12.9.
...
...
@@ -23,15 +23,15 @@ Deploy tokens cannot be used with the GitLab API.
If you have a key pair, you might want to use
[
deploy keys
](
../../project/deploy_keys/index.md
)
instead.
## Creating a Deploy
T
oken
## Creating a Deploy
t
oken
You can create as many deploy tokens as you need from the settings of your
project. Alternatively, you can also create
[
group-scoped deploy tokens
](
#group-deploy-token
)
.
1.
Sign in to your GitLab account.
1.
Go to the project (or group) you want to create
Deploy T
okens for.
1.
Go to the project (or group) you want to create
deploy t
okens for.
1.
Go to
**Settings > Repository**
.
1.
Click on "Expand" on
**Deploy T
okens**
section.
1.
Expand the
**Deploy t
okens**
section.
1.
Choose a name, expiry date (optional), and username (optional) for the token.
1.
Choose the
[
desired scopes
](
#limiting-scopes-of-a-deploy-token
)
.
1.
Select
**Create deploy token**
.
...
...
@@ -46,8 +46,8 @@ Deploy tokens expire at midnight UTC on the date you define.
## Revoking a deploy token
At any time, you can revoke any deploy token by just clicking the respective
**Revoke**
button under the 'Active deploy tokens' area
.
To revoke a deploy token, under the
**Active deploy tokens**
area,
select the respective
**Revoke**
button
.
## Limiting scopes of a deploy token
...
...
@@ -75,11 +75,11 @@ username to be used when creating the deploy token.
### Git clone a repository
To download a repository using a
Deploy Token, you just need to
:
To download a repository using a
deploy token
:
1.
Create a
Deploy T
oken with
`read_repository`
as a scope.
1.
Create a
deploy t
oken with
`read_repository`
as a scope.
1.
Take note of your
`username`
and
`token`
.
1.
`git clone`
the project using the
Deploy T
oken:
1.
`git clone`
the project using the
deploy t
oken:
```
shell
git clone https://<username>:<deploy_token>@gitlab.example.com/tanuki/awesome_project.git
...
...
@@ -91,7 +91,7 @@ Replace `<username>` and `<deploy_token>` with the proper values.
To read the container registry images, you must:
1.
Create a
Deploy T
oken with
`read_registry`
as a scope.
1.
Create a
deploy t
oken with
`read_registry`
as a scope.
1.
Take note of your
`username`
and
`token`
.
1.
Sign in to the GitLab Container Registry using the deploy token:
...
...
@@ -108,7 +108,7 @@ pull images from your Container Registry.
To push the container registry images, you must:
1.
Create a
Deploy T
oken with
`write_registry`
as a scope.
1.
Create a
deploy t
oken with
`write_registry`
as a scope.
1.
Take note of your
`username`
and
`token`
.
1.
Sign in to the GitLab Container Registry using the deploy token:
...
...
@@ -125,7 +125,7 @@ push images to your Container Registry.
To pull packages in the GitLab package registry, you must:
1.
Create a
Deploy T
oken with
`read_package_registry`
as a scope.
1.
Create a
deploy t
oken with
`read_package_registry`
as a scope.
1.
Take note of your
`username`
and
`token`
.
1.
For the
[
package type of your choice
](
../../packages/index.md
)
, follow the
authentication instructions for deploy tokens.
...
...
@@ -152,12 +152,12 @@ Example response:
To upload packages in the GitLab package registry, you must:
1.
Create a
Deploy T
oken with
`write_package_registry`
as a scope.
1.
Create a
deploy t
oken with
`write_package_registry`
as a scope.
1.
Take note of your
`username`
and
`token`
.
1.
For the
[
package type of your choice
](
../../packages/index.md
)
, follow the
authentication instructions for deploy tokens.
### Group
Deploy T
oken
### Group
deploy t
oken
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/21765) in GitLab 12.9.
...
...
@@ -167,7 +167,7 @@ belong either to the specific group or to one of its subgroups.
<i
class=
"fa fa-youtube-play youtube"
aria-hidden=
"true"
></i>
For an overview, see
[
Group Deploy Tokens
](
https://youtu.be/8kxTJvaD9ks
)
.
The Group
Deploy T
okens UI is now accessible under
**Settings > Repository**
,
The Group
deploy t
okens UI is now accessible under
**Settings > Repository**
,
not
**Settings > CI/CD**
as indicated in the video.
To use a group deploy token:
...
...
@@ -179,12 +179,12 @@ To use a group deploy token:
The scopes applied to a group deploy token (such as
`read_repository`
)
apply consistently when cloning the repository of related projects.
### GitLab
Deploy T
oken
### GitLab
deploy t
oken
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/18414) in GitLab 10.8.
There's a special case when it comes to
Deploy T
okens. If a user creates one
named
`gitlab-deploy-token`
, the username and token of the
Deploy T
oken is
There's a special case when it comes to
deploy t
okens. If a user creates one
named
`gitlab-deploy-token`
, the username and token of the
deploy t
oken is
automatically exposed to the CI/CD jobs as CI/CD variables:
`CI_DEPLOY_USER`
and
`CI_DEPLOY_PASSWORD`
, respectively.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment