From a674eda413e8f3653c11414a772a2366b135ddc2 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 25 Oct 2017 18:40:53 +0530 Subject: [PATCH] circle: package charts --- .circleci/config.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..4d1741cca --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,39 @@ +version: 2 +jobs: + package: + working_directory: /workdir + docker: + - image: docker:17.06.0-ce-git + environment: + + steps: + - checkout + - setup_remote_docker: + version: 17.06.0-ce + - run: + name: Upgrade system packages (workaround - https://github.com/docker-library/docker/issues/72) + command: | + apk upgrade --no-cache + - run: + name: Install dependencies + command: | + apk add --no-cache bash curl + - run: + name: Package charts + command: | + curl -sL https://raw.githubusercontent.com/bitnami/test-infra/master/circle/helm-package-charts.sh | bash - + - deploy: + name: Publish charts + command: | + if [ "${CIRCLE_BRANCH}" == "master" ]; then + curl -sL https://raw.githubusercontent.com/bitnami/test-infra/master/circle/helm-publish-charts.sh | bash - + fi + +workflows: + version: 2 + package-and-deploy: + jobs: + - package: + filters: + branches: + only: /.*/