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
699be456
Commit
699be456
authored
May 24, 2021
by
Tim Rizzi
Committed by
Nick Gaskill
May 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CI_API_V4_URL in package docs
parent
11b656cf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
doc/user/packages/composer_repository/index.md
doc/user/packages/composer_repository/index.md
+1
-1
doc/user/packages/conan_repository/index.md
doc/user/packages/conan_repository/index.md
+1
-1
doc/user/packages/maven_repository/index.md
doc/user/packages/maven_repository/index.md
+4
-4
doc/user/packages/npm_registry/index.md
doc/user/packages/npm_registry/index.md
+1
-1
doc/user/packages/nuget_repository/index.md
doc/user/packages/nuget_repository/index.md
+1
-1
doc/user/packages/pypi_repository/index.md
doc/user/packages/pypi_repository/index.md
+1
-1
No files found.
doc/user/packages/composer_repository/index.md
View file @
699be456
...
...
@@ -120,7 +120,7 @@ You can publish a Composer package to the Package Registry as part of your CI/CD
deploy
:
stage
:
deploy
script
:
-
'
curl
--header
"Job-Token:
$CI_JOB_TOKEN"
--data
tag=<tag>
"
https://gitlab.example.com/api/v4
/projects/$CI_PROJECT_ID/packages/composer"'
-
'
curl
--header
"Job-Token:
$CI_JOB_TOKEN"
--data
tag=<tag>
"
${CI_API_V4_URL}
/projects/$CI_PROJECT_ID/packages/composer"'
```
1.
Run the pipeline.
...
...
doc/user/packages/conan_repository/index.md
View file @
699be456
...
...
@@ -281,7 +281,7 @@ image: conanio/gcc7
create_package
:
stage
:
deploy
script
:
-
conan remote add gitlab https://gitlab.example.com/api/v4
/packages/conan
-
${CI_API_V4_URL}/projects/$CI_PROJECT_ID
/packages/conan
-
conan new <package-name>/0.1 -t
-
conan create . <group-name>+<project-name>/stable
-
CONAN_LOGIN_USERNAME=ci_user CONAN_PASSWORD=${CI_JOB_TOKEN} conan upload <package-name>/0.1@<group-name>+<project-name>/stable --all --remote=gitlab
...
...
doc/user/packages/maven_repository/index.md
View file @
699be456
...
...
@@ -341,7 +341,7 @@ file:
```
groovy
repositories {
maven {
url "
https://gitlab.example.com/api/v4
/groups/
<group>
/-/packages/maven"
url "
${CI_API_V4_URL}
/groups/
<group>
/-/packages/maven"
name "GitLab"
credentials(HttpHeaderCredentials) {
name = 'Job-Token'
...
...
@@ -742,17 +742,17 @@ You can create a new package each time the `master` branch is updated.
<repositories>
<repository>
<id>gitlab-maven</id>
<url>$
{env.CI_SERVER_URL}/api/v4
/projects/${env.CI_PROJECT_ID}/packages/maven</url>
<url>$
env{CI_API_V4_URL}
/projects/${env.CI_PROJECT_ID}/packages/maven</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>gitlab-maven</id>
<url>${
env.CI_SERVER_URL}/api/v4
/projects/${env.CI_PROJECT_ID}/packages/maven</url>
<url>${
CI_API_V4_URL}
/projects/${env.CI_PROJECT_ID}/packages/maven</url>
</repository>
<snapshotRepository>
<id>gitlab-maven</id>
<url>${
env.CI_SERVER_URL}/api/v4
/projects/${env.CI_PROJECT_ID}/packages/maven</url>
<url>${
CI_API_V4_URL}
/projects/${env.CI_PROJECT_ID}/packages/maven</url>
</snapshotRepository>
</distributionManagement>
```
...
...
doc/user/packages/npm_registry/index.md
View file @
699be456
...
...
@@ -300,7 +300,7 @@ stages:
deploy
:
stage
:
deploy
script
:
-
echo "//
gitlab.example.com
/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}">.npmrc
-
echo "//
${CI_SERVER_HOST}
/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}">.npmrc
-
npm publish
```
...
...
doc/user/packages/nuget_repository/index.md
View file @
699be456
...
...
@@ -336,7 +336,7 @@ updated:
stage
:
deploy
script
:
-
dotnet pack -c Release
-
dotnet nuget add source "$
CI_SERVER_URL/api/v4/projects
/$CI_PROJECT_ID/packages/nuget/index.json" --name gitlab --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text
-
dotnet nuget add source "$
{CI_API_V4_URL}
/$CI_PROJECT_ID/packages/nuget/index.json" --name gitlab --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text
-
dotnet nuget push "bin/Release/*.nupkg" --source gitlab
only
:
-
master
...
...
doc/user/packages/pypi_repository/index.md
View file @
699be456
...
...
@@ -216,7 +216,7 @@ run:
script
:
-
pip install twine
-
python setup.py sdist bdist_wheel
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url
https://gitlab.example.com/api/v4
/projects/${CI_PROJECT_ID}/packages/pypi dist/*
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url
${CI_API_V4_URL}
/projects/${CI_PROJECT_ID}/packages/pypi dist/*
```
You can also use
`CI_JOB_TOKEN`
in a
`~/.pypirc`
file that you check in to
...
...
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