test circle config

This commit is contained in:
Oliver Gorwits
2018-01-15 20:28:47 +00:00
parent fef89aa569
commit 61849ddf27

View File

@@ -1,13 +1,27 @@
version: 2 version: 2
jobs: jobs:
build: call-github-api:
docker: docker:
- image: debian:stretch - image: debian:stretch
steps: steps:
- checkout
- run: - run:
name: Greeting name: Call GitHub Releases API
command: echo Hello, world. command:
- run: for url in $(echo $RELEASE_INJECTION | sed "s/,/ /g"); do
name: Print the Current Time curl -sL -X POST -H "Content-Type: application/json" \
command: date -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: /.*/