charts/.gitlab-ci.yml
2021-03-22 10:06:47 +01:00

32 lines
784 B
YAML

---
stages:
- test
- deploy
lint:charts:
image:
name: codenest/helm
entrypoint: ["/bin/sh", "-c"]
stage: test
script:
- helm lint charts/*
pages:
image:
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:
- mkdir -p public
- "echo \"User-Agent: *\nDisallow: /\" > ./public/robots.txt"
- (cd public; helm package ../charts/*)
- helm repo index public --url ${CI_PAGES_URL}
artifacts:
paths:
- public
only:
- master@ananace/charts