From 61849ddf27fa6f556ace705e3cc4a37d3b2e98bf Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Mon, 15 Jan 2018 20:28:47 +0000 Subject: [PATCH] test circle config --- .circleci/config.yml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 65e6c33b..14071cb9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,13 +1,27 @@ version: 2 jobs: - build: + call-github-api: docker: - image: debian:stretch steps: - - checkout - run: - name: Greeting - command: echo Hello, world. - - run: - name: Print the Current Time - command: date + 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: /.*/