Skip to content
Snippets Groups Projects
Verified Commit 2bcd1e74 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

ci(mok): Fix too universal CI job

This patch adjust the helm package command to only package the actually
changed chart an not double upload packaged helm charts.
parent a06529b0
Branches
Tags
No related merge requests found
......@@ -3,7 +3,7 @@ build:
image: quay.io/helmpack/chart-testing:v3.6.0
script:
- export TMP_DIR=$(mktemp -d)
- helm package charts/* -d "$TMP_DIR"
- helm package charts/mok -d "$TMP_DIR"
- for i in $(ls $TMP_DIR/*.tgz); do curl --request POST --user "gitlab-ci-token:$CI_JOB_TOKEN" --form "chart=@${i}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CI_COMMIT_REF_SLUG}/charts"; done
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment