add API trigger for helm charts index (#281)
This commit is contained in:
parent
c045ad89aa
commit
ee2827f710
1 changed files with 23 additions and 1 deletions
|
@ -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
|
||||
update-helm-charts-index:
|
||||
jobs:
|
||||
- update-helm-charts-index:
|
||||
context: helm-charts-trigger
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
|
|
Loading…
Reference in a new issue