Files
netdisco/.circleci/config.yml
Oliver Gorwits 4ec8d48785 fix config
2018-01-15 21:01:37 +00:00

30 lines
855 B
YAML

version: 2
jobs:
call-github-api:
docker:
- image: debian:stretch
steps:
- run:
name: Call GitHub Releases API
command: |
if [ ! -z "$CIRCLE_TAG" ]; then
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
fi
workflows:
version: 2
trigger-netdisco-docker-images-build:
jobs:
- call-github-api:
filters:
tags:
only: /^2\.\d{6}/
# branches:
# ignore: /.*/