charts/.gitlab-ci.yml

30 lines
568 B
YAML
Raw Normal View History

2019-05-17 08:57:08 +00:00
---
stages:
- test
- deploy
lint:charts:
image:
name: linkyard/docker-helm
entrypoint: ["/bin/sh", "-c"]
stage: test
script:
- helm lint charts/*
pages:
image:
name: linkyard/docker-helm
entrypoint: ["/bin/sh", "-c"]
stage: deploy
script:
- helm init --client-only
- 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