diff --git a/.circleci/config.yml b/.circleci/config.yml index 357aa40..9d497c0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,8 +6,30 @@ jobs: - checkout - run: make test-image - run: make test-unit + update-helm-charts-index: + docker: + - image: circleci/golang:latest + steps: + - run: + name: update helm-charts index + command: | + curl --show-error --silent --fail --user "${CIRCLE_TOKEN}:" \ + -X POST \ + -H 'Content-Type: application/json' \ + -H 'Accept: application/json' \ + -d "{\"branch\": \"master\",\"parameters\":{\"SOURCE_REPO\": \"${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}\",\"SOURCE_TAG\": \"${CIRCLE_TAG}\"}}" \ + "${CIRCLE_ENDPOINT}/${CIRCLE_PROJECT}/pipeline" workflows: version: 2 build_and_test: jobs: - - bats-unit-test + - bats-unit-test + update-helm-charts-index: + jobs: + - update-helm-charts-index: + context: helm-charts-trigger + filters: + tags: + only: /^v.*/ + branches: + ignore: /.*/