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: /.*/