2019-10-31 18:05:21 +00:00
|
|
|
version: 2.1
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
docker:
|
2021-01-12 18:27:30 +00:00
|
|
|
- image: quay.io/helmpack/chart-testing:v3.3.1
|
2019-10-31 18:05:21 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2021-05-21 13:03:28 +00:00
|
|
|
- run: ct lint --config .github/ct.yaml --lint-conf .github/lintconf.yaml
|
|
|
|
|
2019-10-31 18:05:21 +00:00
|
|
|
# Technically this only needs to be run on master, but it's good to have it run on every PR
|
|
|
|
# so that it is regularly tested.
|
|
|
|
publish:
|
|
|
|
docker:
|
|
|
|
# We just need an image with `helm` on it. Handily we know of one already.
|
2021-01-12 18:27:30 +00:00
|
|
|
- image: quay.io/helmpack/chart-testing:v3.3.1
|
2019-10-31 18:05:21 +00:00
|
|
|
steps:
|
2021-02-02 17:25:24 +00:00
|
|
|
# install the additional keys needed to push to GitHub. Alex Collins owns these keys.
|
2019-10-31 18:05:21 +00:00
|
|
|
- add_ssh_keys
|
|
|
|
- run: git config --global user.email "nobody@circleci.com"
|
|
|
|
- run: git config --global user.name "Circle CI Build"
|
|
|
|
- checkout
|
2021-01-12 18:27:30 +00:00
|
|
|
- run: helm repo add stable https://charts.helm.sh/stable
|
|
|
|
- run: helm repo add minio https://helm.min.io/
|
2021-05-21 13:03:28 +00:00
|
|
|
- run: helm repo add argo https://argoproj.github.io/argo-helm
|
2021-01-26 23:40:18 +00:00
|
|
|
- run: helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
|
2019-10-31 18:05:21 +00:00
|
|
|
# Only actually publish charts on master.
|
|
|
|
- run: |
|
2019-10-31 18:28:02 +00:00
|
|
|
set -x
|
2019-10-31 18:05:21 +00:00
|
|
|
if [ "$CIRCLE_BRANCH" = "master" ]; then
|
2019-10-31 18:28:02 +00:00
|
|
|
export GIT_PUSH=true
|
|
|
|
else
|
|
|
|
export GIT_PUSH=false
|
2019-10-31 18:05:21 +00:00
|
|
|
fi
|
2019-10-31 18:28:02 +00:00
|
|
|
sh ./scripts/publish.sh
|
2019-10-31 18:05:21 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
workflow:
|
|
|
|
jobs:
|
|
|
|
- lint
|
|
|
|
- publish:
|
|
|
|
requires:
|
2021-05-21 13:03:28 +00:00
|
|
|
- lint
|