charts/.gitlab-ci.yml
2021-03-22 09:51:40 +01:00

29 lines
582 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
script:
- (cd charts; ls -0 | xargs -0rn1 helm dependency build)
- 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