Skip to content

Commit 250e4f6

Browse files
committed
Add automated docker image building
1 parent 44f4db9 commit 250e4f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ci/deploy.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,11 @@ sha512sum $fname | cut -d ' ' -f 1 > $fname.sha512
5252

5353
git add .
5454
git commit -m "phar build: $TRAVIS_REPO_SLUG@$TRAVIS_COMMIT"
55+
git push
5556

56-
git push
57+
# Trigger docker image build with new phar
58+
if [[ "$TRAVIS_BRANCH" == "develop-v4" ]]; then
59+
curl -H "Content-Type: application/json" --data '{"docker_tag": "nightly"}' -X POST https://registry.hub.docker.com/u/easyengine/base/trigger/"$DOCKER_BUILD_TOKEN"/
60+
else
61+
curl -H "Content-Type: application/json" --data '{"docker_tag": "latest"}' -X POST https://registry.hub.docker.com/u/easyengine/base/trigger/"$DOCKER_BUILD_TOKEN"/
62+
fi

0 commit comments

Comments
 (0)