ci: use GITLAB_CRT as CA file for helm repo add and curl
This commit is contained in:
+2
-1
@@ -33,7 +33,7 @@ package_chart:
|
|||||||
stage: package
|
stage: package
|
||||||
image: *helm_image
|
image: *helm_image
|
||||||
script:
|
script:
|
||||||
- helm repo add st-common "${COMMON_PROJECT_URL}" --username "$CI_REGISTRY_USER" --password "$CI_JOB_TOKEN"
|
- helm repo add st-common "${COMMON_PROJECT_URL}" --username "$CI_REGISTRY_USER" --password "$CI_JOB_TOKEN" --ca-file "$GITLAB_CRT"
|
||||||
- helm dependency build .
|
- helm dependency build .
|
||||||
- mkdir -p "$PACKAGE_PATH"
|
- mkdir -p "$PACKAGE_PATH"
|
||||||
- helm package . --destination "$PACKAGE_PATH"
|
- helm package . --destination "$PACKAGE_PATH"
|
||||||
@@ -48,6 +48,7 @@ publish_chart:
|
|||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
curl --fail-with-body --request POST \
|
curl --fail-with-body --request POST \
|
||||||
|
--cacert "$GITLAB_CRT" \
|
||||||
--user "$CI_REGISTRY_USER:$CI_JOB_TOKEN" \
|
--user "$CI_REGISTRY_USER:$CI_JOB_TOKEN" \
|
||||||
--form "chart=@${CHART_ARCHIVE}" \
|
--form "chart=@${CHART_ARCHIVE}" \
|
||||||
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"
|
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"
|
||||||
|
|||||||
Reference in New Issue
Block a user