2019-05-17 08:57:08 +00:00
|
|
|
---
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
lint:charts:
|
|
|
|
image:
|
2020-08-10 08:17:50 +00:00
|
|
|
name: codenest/helm
|
2019-05-17 08:57:08 +00:00
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- helm lint charts/*
|
|
|
|
|
|
|
|
pages:
|
|
|
|
image:
|
2020-08-10 08:17:50 +00:00
|
|
|
name: codenest/helm
|
2019-05-17 08:57:08 +00:00
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
stage: deploy
|
2021-03-22 09:06:47 +00:00
|
|
|
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
|
2021-03-22 09:10:45 +00:00
|
|
|
- ls -d1 charts/* | xargs -rn1 helm dependency build --skip-refresh
|
2019-05-17 08:57:08 +00:00
|
|
|
script:
|
2020-05-24 09:52:24 +00:00
|
|
|
- mkdir -p public
|
2019-05-17 08:57:08 +00:00
|
|
|
- "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
|