changes on circleci to .circleci/config.yml,

This commit is contained in:
Alex Collins 2019-10-31 11:00:56 -07:00
parent c93d6f3bfb
commit 70f2a5e70d

View file

@ -6,20 +6,25 @@ jobs:
steps: steps:
- checkout - checkout
- run: ct lint --config .circleci/chart-testing.yaml - run: ct lint --config .circleci/chart-testing.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: publish:
docker: docker:
# We just need an image with `helm` on it. Handily we know of one already.
- image: gcr.io/kubernetes-charts-ci/test-image:v3.0.1 - image: gcr.io/kubernetes-charts-ci/test-image:v3.0.1
steps: steps:
# install the additional keys needed to push to Github. Alex Collins owns these keys.
- add_ssh_keys - add_ssh_keys
- checkout - checkout
- run: helm init --client-only - run: helm init --client-only
- run: git config --global user.email "nobody@circleci.com" - run: git config --global user.email "nobody@circleci.com"
- run: git config --global user.name "Circle CI Build" - run: git config --global user.name "Circle CI Build"
- run: sh ./scripts/publish.sh # Only actually publish charts on master.
- run: | - run: |
if [ "$CIRCLE_BRANCH" = "circleci" ]; then if [ "$CIRCLE_BRANCH" = "circleci" ]; then
git push origin gh-pages echo 'export GIT_PUSH=true' >> $BASH_ENV
fi fi
- run: sh ./scripts/publish.sh
workflows: workflows:
version: 2 version: 2
workflow: workflow: