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
6a6968bb
Commit
6a6968bb
authored
Sep 08, 2021
by
Jonston Chan
Committed by
Marcel Amirault
Sep 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quote URLs in cURL command
parent
580148e7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
doc/.vale/gitlab/CurlStringsQuoted.yml
doc/.vale/gitlab/CurlStringsQuoted.yml
+1
-1
doc/api/packages/helm.md
doc/api/packages/helm.md
+4
-4
doc/development/internal_api.md
doc/development/internal_api.md
+2
-2
doc/user/packages/generic_packages/index.md
doc/user/packages/generic_packages/index.md
+1
-1
doc/user/project/releases/index.md
doc/user/project/releases/index.md
+2
-2
No files found.
doc/.vale/gitlab/CurlStringsQuoted.yml
View file @
6a6968bb
...
@@ -10,4 +10,4 @@ link: https://docs.gitlab.com/ee/development/documentation/restful_api_styleguid
...
@@ -10,4 +10,4 @@ link: https://docs.gitlab.com/ee/development/documentation/restful_api_styleguid
level
:
error
level
:
error
scope
:
code
scope
:
code
raw
:
raw
:
-
'
curl
.*[^"=]https?
://.*'
-
'
curl
[^"]+
://.*'
doc/api/packages/helm.md
View file @
6a6968bb
...
@@ -38,14 +38,14 @@ GET projects/:id/packages/helm/:channel/index.yaml
...
@@ -38,14 +38,14 @@ GET projects/:id/packages/helm/:channel/index.yaml
```
shell
```
shell
curl
--user
<username>:<personal_access_token>
\
curl
--user
<username>:<personal_access_token>
\
https://gitlab.example.com/api/v4/projects/1/packages/helm/stable/index.yaml
"https://gitlab.example.com/api/v4/projects/1/packages/helm/stable/index.yaml"
```
```
Write the output to a file:
Write the output to a file:
```
shell
```
shell
curl
--user
<username>:<personal_access_token>
\
curl
--user
<username>:<personal_access_token>
\
https://gitlab.example.com/api/v4/projects/1/packages/helm/stable/index.yaml
\
"https://gitlab.example.com/api/v4/projects/1/packages/helm/stable/index.yaml"
\
--remote-name
--remote-name
```
```
...
@@ -67,7 +67,7 @@ GET projects/:id/packages/helm/:channel/charts/:file_name.tgz
...
@@ -67,7 +67,7 @@ GET projects/:id/packages/helm/:channel/charts/:file_name.tgz
```
shell
```
shell
curl
--user
<username>:<personal_access_token>
\
curl
--user
<username>:<personal_access_token>
\
https://gitlab.example.com/api/v4/projects/1/packages/helm/stable/charts/mychart.tgz
\
"https://gitlab.example.com/api/v4/projects/1/packages/helm/stable/charts/mychart.tgz"
\
--remote-name
--remote-name
```
```
...
@@ -91,5 +91,5 @@ POST projects/:id/packages/helm/api/:channel/charts
...
@@ -91,5 +91,5 @@ POST projects/:id/packages/helm/api/:channel/charts
curl
--request
POST
\
curl
--request
POST
\
--form
'chart=@mychart.tgz'
\
--form
'chart=@mychart.tgz'
\
--user
<username>:<personal_access_token>
\
--user
<username>:<personal_access_token>
\
https://gitlab.example.com/api/v4/projects/1/packages/helm/api/stable/charts
"https://gitlab.example.com/api/v4/projects/1/packages/helm/api/stable/charts"
```
```
doc/development/internal_api.md
View file @
6a6968bb
...
@@ -725,7 +725,7 @@ Example request:
...
@@ -725,7 +725,7 @@ Example request:
```
shell
```
shell
curl
--request
POST
\
curl
--request
POST
\
--url
http://localhost:3000/api/v4/namespaces/123/minutes
\
--url
"http://localhost:3000/api/v4/namespaces/123/minutes"
\
--header
'Content-Type: application/json'
\
--header
'Content-Type: application/json'
\
--header
'PRIVATE-TOKEN: <admin access token>'
\
--header
'PRIVATE-TOKEN: <admin access token>'
\
--data
'{
--data
'{
...
@@ -769,7 +769,7 @@ Example request:
...
@@ -769,7 +769,7 @@ Example request:
```
shell
```
shell
curl
--request
PATCH
\
curl
--request
PATCH
\
--url
http://localhost:3000/api/v4/namespaces/123/minutes/move/321
\
--url
"http://localhost:3000/api/v4/namespaces/123/minutes/move/321"
\
--header
'PRIVATE-TOKEN: <admin access token>'
--header
'PRIVATE-TOKEN: <admin access token>'
```
```
...
...
doc/user/packages/generic_packages/index.md
View file @
6a6968bb
...
@@ -125,7 +125,7 @@ Example request that uses HTTP Basic authentication:
...
@@ -125,7 +125,7 @@ Example request that uses HTTP Basic authentication:
```
shell
```
shell
curl
--user
"user:<your_access_token>"
\
curl
--user
"user:<your_access_token>"
\
https://gitlab.example.com/api/v4/projects/24/packages/generic/my_package/0.0.1/file.txt
"https://gitlab.example.com/api/v4/projects/24/packages/generic/my_package/0.0.1/file.txt"
```
```
## Publish a generic package by using CI/CD
## Publish a generic package by using CI/CD
...
...
doc/user/project/releases/index.md
View file @
6a6968bb
...
@@ -392,9 +392,9 @@ upload:
...
@@ -392,9 +392,9 @@ upload:
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_TAG
script
:
script
:
-
|
-
|
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/${DARWIN_AMD64_BINARY}
${PACKAGE_REGISTRY_URL}/${DARWIN_AMD64_BINARY}
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/${DARWIN_AMD64_BINARY}
"${PACKAGE_REGISTRY_URL}/${DARWIN_AMD64_BINARY}"
-
|
-
|
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/${LINUX_AMD64_BINARY}
${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/${LINUX_AMD64_BINARY}
"${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}"
release
:
release
:
# Caution, as of 2021-02-02 these assets links require a login, see:
# Caution, as of 2021-02-02 these assets links require a login, see:
...
...
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