From a52ac1d35036a7496ec4706df45b06a4da39322d Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Mon, 22 Mar 2021 10:06:47 +0100 Subject: [PATCH] Improve CI stage for dependency retrieval --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 90e7a33..786f0a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,8 +16,11 @@ pages: name: codenest/helm entrypoint: ["/bin/sh", "-c"] stage: deploy + before_script: + - grep 'repository:' charts/*/Chart.yaml charts/*/requirements.yaml | awk '{ print $3 }' | uniq | xargs -rn1 sh -c 'helm repo add $(basename $0) $0' + - helm repo update + - ls charts/ -1 | xargs -rn1 helm dependency build --skip-refresh script: - - (cd charts; ls -1 | xargs -rn1 helm dependency build) - mkdir -p public - "echo \"User-Agent: *\nDisallow: /\" > ./public/robots.txt" - (cd public; helm package ../charts/*)