add API trigger for helm charts index (#281)

This commit is contained in:
Alvin Huang 2020-04-29 14:37:18 -04:00 committed by GitHub
parent c045ad89aa
commit ee2827f710
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,30 @@ jobs:
- checkout - checkout
- run: make test-image - run: make test-image
- run: make test-unit - 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: workflows:
version: 2 version: 2
build_and_test: build_and_test:
jobs: 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: /.*/