Commit 8600df43 authored by torgiren's avatar torgiren
Browse files

ci

parent 84499a8b
1 merge request!9Ci
Pipeline #103 failed with stages
in 27 seconds
Showing with 3 additions and 5 deletions
+3 -5
......@@ -11,9 +11,7 @@ upload_all:
name: alpine/helm:3.2.1
script:
- HELM_EXPERIMENTAL_OCI=1 helm registry login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- export HELM_EXPERIMENTAL_OCI=1; sh -ec 'for i in $(ls */Chart.yaml); do chart=$(dirname $i); export; echo "publishing ${chart}"; #helm chart save ${chart} $CI_REGISTRY/$CI_REGISTRY_USER/${chart}; helm chart save ${chart} "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"
#helm chart push $CI_REGISTRY/exphost-helms${chart}; helm chart push ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts
done'
- export HELM_EXPERIMENTAL_OCI=1; sh -ec 'for i in $(ls */Chart.yaml); do chart=$(dirname $i); export; echo "publishing ${chart}"; #helm chart save ${chart} $CI_REGISTRY/$CI_REGISTRY_USER/${chart}; helm chart save ${chart} "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"; #helm chart push $CI_REGISTRY/exphost-helms${chart}; helm chart push ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts; done'
#- helm chart save helloworld /gitlabUser/helloworld:
#- helm chart push /gitlabUser/helloworld:
#- 'for char in *tgz; do curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@${chart}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"; done'
......
......@@ -18,9 +18,9 @@ upload_all:
export; \
echo "publishing \${chart}"; \
#helm chart save \${chart} \$CI_REGISTRY/\$CI_REGISTRY_USER/\${chart}; \
helm chart save \${chart} "\${CI_API_V4_URL}/projects/\${CI_PROJECT_ID}/packages/helm/api/stable/charts"
helm chart save \${chart} "\${CI_API_V4_URL}/projects/\${CI_PROJECT_ID}/packages/helm/api/stable/charts"; \
#helm chart push \$CI_REGISTRY/exphost-helms\${chart}; \
helm chart push \${CI_API_V4_URL}/projects/\${CI_PROJECT_ID}/packages/helm/api/stable/charts
helm chart push \${CI_API_V4_URL}/projects/\${CI_PROJECT_ID}/packages/helm/api/stable/charts; \
done'
#- helm chart save helloworld $CI_REGISTRY/gitlabUser/helloworld:$CI_COMMIT_TAG
#- helm chart push $CI_REGISTRY/gitlabUser/helloworld:$CI_COMMIT_TAg
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment