charts/.circleci/config.yml

66 lines
1.6 KiB
YAML
Raw Normal View History

2019-08-05 00:40:59 +00:00
version: 2
jobs:
2019-08-05 00:52:18 +00:00
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/billimek/billimek-charts
2019-08-05 00:52:18 +00:00
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
2019-08-05 00:40:59 +00:00
lint-scripts:
docker:
- image: koalaman/shellcheck-alpine
steps:
- checkout
- run:
name: lint
command: shellcheck -x .circleci/*.sh
release-charts:
machine: true
steps:
- checkout
2019-08-05 02:51:00 +00:00
- add_ssh_keys:
fingerprints:
- "07:2a:c4:7a:48:3b:e5:cd:0c:80:bb:0d:be:f1:25:32"
2019-08-05 00:40:59 +00:00
- 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
2019-08-05 00:52:18 +00:00
lint-and-install:
2019-08-05 00:40:59 +00:00
jobs:
- lint-scripts
2019-08-05 00:52:18 +00:00
- lint-charts:
filters:
branches:
ignore: master
tags:
ignore: /.*/
- install-charts:
requires:
- lint-charts
release:
jobs:
2019-08-05 00:40:59 +00:00
- release-charts:
filters:
tags:
ignore: /.*/
branches:
2019-08-05 00:52:18 +00:00
only: master