charts/.circleci/config.yml
2019-08-04 20:52:18 -04:00

63 lines
1.5 KiB
YAML

version: 2
jobs:
lint-charts:
docker:
- image: gcr.io/kubernetes-charts-ci/test-image:v3.3.2
steps:
- checkout
- run:
name: lint
command: |
git remote add upstream https://github.com/paulczar/percona-helm-charts
git fetch upstream master
ct lint --config .circleci/ct.yaml
install-charts:
machine: true
steps:
- checkout
- run:
no_output_timeout: 12m
command: .circleci/install_charts.sh
lint-scripts:
docker:
- image: koalaman/shellcheck-alpine
steps:
- checkout
- run:
name: lint
command: shellcheck -x .circleci/*.sh
release-charts:
machine: true
steps:
- checkout
- run:
command: |
echo "export GIT_REPOSITORY_URL=$CIRCLE_REPOSITORY_URL" >> $BASH_ENV
echo "export GIT_USERNAME=$CIRCLE_PROJECT_USERNAME" >> $BASH_ENV
echo "export GIT_REPOSITORY_NAME=$CIRCLE_PROJECT_REPONAME" >> $BASH_ENV
.circleci/install_tools.sh
.circleci/release.sh
workflows:
version: 2
lint-and-install:
jobs:
- lint-scripts
- lint-charts:
filters:
branches:
ignore: master
tags:
ignore: /.*/
- install-charts:
requires:
- lint-charts
release:
jobs:
- release-charts:
filters:
tags:
ignore: /.*/
branches:
only: master