Improve CI stage for dependency retrieval

This commit is contained in:
Alexander Olofsson 2021-03-22 10:06:47 +01:00
parent 1a6a872b06
commit a52ac1d350
No known key found for this signature in database
GPG key ID: D439C9470CB04C73

View file

@ -16,8 +16,11 @@ pages:
name: codenest/helm name: codenest/helm
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
stage: deploy 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: script:
- (cd charts; ls -1 | xargs -rn1 helm dependency build)
- mkdir -p public - mkdir -p public
- "echo \"User-Agent: *\nDisallow: /\" > ./public/robots.txt" - "echo \"User-Agent: *\nDisallow: /\" > ./public/robots.txt"
- (cd public; helm package ../charts/*) - (cd public; helm package ../charts/*)