ci: use GITLAB_CRT as CA file for helm repo add and curl

This commit is contained in:
2026-10-09 09:21:09 +02:00
parent 039196b881
commit 0469052b68
+2 -1
View File
@@ -33,7 +33,7 @@ package_chart:
stage: package
image: *helm_image
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 .
- mkdir -p "$PACKAGE_PATH"
- helm package . --destination "$PACKAGE_PATH"
@@ -48,6 +48,7 @@ publish_chart:
script:
- |
curl --fail-with-body --request POST \
--cacert "$GITLAB_CRT" \
--user "$CI_REGISTRY_USER:$CI_JOB_TOKEN" \
--form "chart=@${CHART_ARCHIVE}" \
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"