Files
netdisco/docker/hooks/post_push
2018-01-13 22:55:56 +00:00

8 lines
286 B
Bash
Executable File

#!/bin/bash
for url in $(echo $BUILD_TRIGGERS | sed "s/,/ /g"); do
curl -sL -X POST -H "Content-Type: application/json" \
-u "$ACCESS_TOKEN" \
--data "{\"tag_name\": \"$SOURCE_BRANCH\", \"target_commitish\": \"master\", \"name\": \"Netdisco $SOURCE_BRANCH\"}" \
$url
done