Files
netdisco/.circleci/config.yml
Oliver Gorwits 00e1ed11ee fix config
2018-01-15 20:35:59 +00:00

28 lines
778 B
YAML

version: 2
jobs:
call-github-api:
docker:
- image: debian:stretch
steps:
- run:
name: Call GitHub Releases API
command: |
for url in $(echo $RELEASE_INJECTION | sed "s/,/ /g"); do
curl -sL -X POST -H "Content-Type: application/json" \
-u "$ACCESS_TOKEN" \
--data "{\"tag_name\": \"$CIRCLE_TAG\", \
\"target_commitish\": \"master\", \
\"name\": \"Netdisco $CIRCLE_TAG\"}" \
$url
done
workflows:
version: 2
trigger-netdisco-docker-images-build:
jobs:
- call-github-api:
filters:
tags:
only: /^2\.\d{6}/
branches:
ignore: /.*/