use a git release on the other repo

This commit is contained in:
Oliver Gorwits
2018-01-13 22:55:56 +00:00
parent b5e564212e
commit 94434be84d

View File

@@ -1,4 +1,7 @@
#!/bin/bash
for url in $(echo $BUILD_TRIGGERS | sed "s/,/ /g"); do
curl -sL -X POST -H "Content-Type: application/json" --data "{ \"build\": true, \"source_name\": \"$SOURCE_BRANCH\" }" $url
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