Skip to content
Snippets Groups Projects
Verified Commit 7064f09f authored by Varac's avatar Varac
Browse files

Install curl

parent e75ae8be
No related branches found
No related tags found
No related merge requests found
Pipeline #68591 passed
# https://docs.gitlab.com/ee/user/packages/helm_repository/
include:
- remote: https://open.greenhost.net/stackspin/stackspin/raw/main/.gitlab/ci_templates/kaniko.yml
......@@ -28,12 +29,17 @@ package_charts:
name: alpine/helm:3.7.1
entrypoint: ["/bin/sh", "-c"]
script:
# The helm-push command is broken in Helm 3.7. For more information,
# see the open issue in the Chart Museum project:
# https://github.com/chartmuseum/helm-push/issues/109
- apk add curl
- mkdir public/
- helm package -d public/ $CHART
# - helm repo index public/ --url https://charts.oas.varac.net
# - apk add markdown
# - markdown README.md > public/index.html
- 'chart_filename=$(ls public/${CHART}*)'
- ls $chart_filename
- 'curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@${chart_filename}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
parallel: !reference [.charts,parallel]
artifacts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment