argo-helm/.circleci/config.yml

42 lines
1.4 KiB
YAML
Raw Normal View History

version: 2.1
jobs:
lint:
docker:
- image: quay.io/helmpack/chart-testing:v3.3.1
steps:
- checkout
- run: ct lint --config .github/ct.yaml --lint-conf .github/lintconf.yaml
# 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.
- image: quay.io/helmpack/chart-testing:v3.3.1
steps:
# install the additional keys needed to push to GitHub. Alex Collins owns these keys.
- add_ssh_keys
- run: git config --global user.email "nobody@circleci.com"
- run: git config --global user.name "Circle CI Build"
- checkout
- run: helm repo add stable https://charts.helm.sh/stable
- run: helm repo add minio https://helm.min.io/
- 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/
# Only actually publish charts on master.
- run: |
2019-10-31 18:28:02 +00:00
set -x
if [ "$CIRCLE_BRANCH" = "master" ]; then
2019-10-31 18:28:02 +00:00
export GIT_PUSH=true
else
export GIT_PUSH=false
fi
2019-10-31 18:28:02 +00:00
sh ./scripts/publish.sh
workflows:
version: 2
workflow:
jobs:
- lint
- publish:
requires:
- lint