Avoid uploading duplicate chart instances
Related to GL epic 5070
This commit is contained in:
parent
096d4b6556
commit
41549f0851
1 changed files with 4 additions and 1 deletions
|
@ -43,6 +43,9 @@ push:
|
||||||
script:
|
script:
|
||||||
- mkdir -p packaged
|
- mkdir -p packaged
|
||||||
- (cd packaged; helm package ../charts/*)
|
- (cd packaged; helm package ../charts/*)
|
||||||
- ls -d1 packaged/* | xargs -rn1 sh -c '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"'
|
- ls -d1 packaged/* | xargs -rn1 sh -c '
|
||||||
|
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"
|
||||||
|
'
|
||||||
variables:
|
variables:
|
||||||
CHANNEL: stable
|
CHANNEL: stable
|
||||||
|
|
Loading…
Reference in a new issue