add host push hook
from: https://stackoverflow.com/questions/36948145/chain-automated-builds-in-the-same-docker-hub-repository
This commit is contained in:
4
docker/netdisco-base/hooks/post_push
Executable file
4
docker/netdisco-base/hooks/post_push
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
for url in $(echo $BUILD_TRIGGERS | sed "s/,/ /g"); do
|
||||
curl -X POST -H "Content-Type: application/json" --data "{ \"build\": true, \"source_name\": \"$SOURCE_BRANCH\" }" $url
|
||||
done
|
||||
Reference in New Issue
Block a user