add circleci files

This commit is contained in:
Oliver Gorwits
2018-01-15 18:47:01 +00:00
parent 45086ee541
commit fef89aa569
5 changed files with 14 additions and 1 deletions

2
.docker/hooks/build Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
docker build --build-arg TAG=$SOURCE_BRANCH -t $IMAGE_NAME .

7
.docker/hooks/post_push Executable file
View File

@@ -0,0 +1,7 @@
#!/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