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
4e42930e
Commit
4e42930e
authored
Jul 14, 2021
by
Philip Welz
Committed by
Nick Gaskill
Jul 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: add CI/CD section for publishing a Helm package
parent
6d377105
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
doc/user/packages/helm_repository/index.md
doc/user/packages/helm_repository/index.md
+20
-1
No files found.
doc/user/packages/helm_repository/index.md
View file @
4e42930e
...
...
@@ -38,7 +38,7 @@ Once built, a chart can be uploaded to the `stable` channel with `curl` or `helm
```
shell
curl
--request
POST
\
--form
'chart=@mychart.tgz'
\
--form
'chart=@mychart
-0.1.0
.tgz'
\
--user
<username>:<personal_access_token>
\
https://gitlab.example.com/api/v4/projects/1/packages/helm/api/stable/charts
```
...
...
@@ -50,6 +50,25 @@ Once built, a chart can be uploaded to the `stable` channel with `curl` or `helm
helm push mychart-0.1.0.tgz project-1
```
## Use CI/CD to publish a Helm package
To publish a Helm package automated through
[
GitLab CI/CD
](
../../../ci/index.md
)
, you can use
`CI_JOB_TOKEN`
in place of the personal access token in your commands.
For example:
```
yaml
image
:
curlimages/curl:latest
stages
:
-
upload
upload
:
stage
:
upload
script
:
-
'
curl
--request
POST
--user
gitlab-ci-token:$CI_JOB_TOKEN
--form
"chart=@mychart-0.1.0.tgz"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
```
## Install a package
To install the latest version of a chart, use the following command:
...
...
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