Store generated index.yaml from upload task
This commit is contained in:
parent
3e32156f1b
commit
95b47ae218
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,12 @@ push:
|
||||||
curl --user gitlab-ci-token:$CI_JOB_TOKEN "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable/charts/$(basename $0)" -Iso /dev/null -w "%{http_code}" | grep 200 ||
|
curl --user gitlab-ci-token:$CI_JOB_TOKEN "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable/charts/$(basename $0)" -Iso /dev/null -w "%{http_code}" | grep 200 ||
|
||||||
curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@$0" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CHANNEL}/charts"
|
curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@$0" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CHANNEL}/charts"
|
||||||
'
|
'
|
||||||
|
- mkdir -p public
|
||||||
|
- curl --user gitlab-ci-token:$CI_JOB_TOKEN "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CHANNEL}/index.yaml" -o public/index.yaml
|
||||||
|
- sed -e 's|- charts/|- ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CHANNEL}/|' -i public/index.yaml
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
variables:
|
variables:
|
||||||
CHANNEL: stable
|
CHANNEL: stable
|
||||||
only:
|
only:
|
||||||
|
|
Loading…
Reference in a new issue