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
b3cd3a02
Commit
b3cd3a02
authored
May 18, 2021
by
Tim Rizzi
Committed by
Nick Gaskill
May 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deploy tokens cannot be used with the Packages API
parent
2a41d2e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
27 deletions
+3
-27
doc/user/packages/generic_packages/index.md
doc/user/packages/generic_packages/index.md
+0
-16
doc/user/project/deploy_tokens/index.md
doc/user/project/deploy_tokens/index.md
+3
-11
No files found.
doc/user/packages/generic_packages/index.md
View file @
b3cd3a02
...
...
@@ -69,22 +69,6 @@ Example response:
}
```
Example request using a deploy token:
```
shell
curl
--header
"DEPLOY-TOKEN: <deploy_token>"
\
--upload-file
path/to/file.txt
\
"https://gitlab.example.com/api/v4/projects/24/packages/generic/my_package/0.0.1/file.txt?status=hidden"
```
Example response:
```
json
{
"message"
:
"201 Created"
}
```
## Download package file
Download a package file.
...
...
doc/user/project/deploy_tokens/index.md
View file @
b3cd3a02
...
...
@@ -130,20 +130,12 @@ To pull packages in the GitLab package registry, you must:
1.
For the
[
package type of your choice
](
../../packages/index.md
)
, follow the
authentication instructions for deploy tokens.
Example request publishing a
generic
package using a deploy token:
Example request publishing a
NuGet
package using a deploy token:
```
shell
curl
--header
"DEPLOY-TOKEN: <deploy_token>"
\
--upload-file
path/to/file.txt
\
"https://gitlab.example.com/api/v4/projects/24/packages/generic/my_package/0.0.1/file.txt?status=hidden"
```
Example response:
nuget
source
Add
-Name
GitLab
-Source
"https://gitlab.example.com/api/v4/projects/10/packages/nuget/index.json"
-UserName
deploy-token-username
-Password
12345678asdf
```
json
{
"message"
:
"201 Created"
}
nuget push mypkg.nupkg
-Source
GitLab
```
### Push or upload packages
...
...
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