Skip to content

Commit

Permalink
add API trigger for helm charts index (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvin-huang authored Apr 29, 2020
1 parent c045ad8 commit ee2827f
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: /.*/

0 comments on commit ee2827f

Please sign in to comment.