2018-08-20 07:04:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-08-20 18:38:30 +00:00
|
|
|
if [ "$DOCKER_HUB_TOKEN" != "" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_REPO_SLUG" == "keycloak/keycloak" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
|
2018-08-20 07:04:06 +00:00
|
|
|
curl -H "Content-Type: application/json" --data '{"docker_tag": "master"}' -X POST https://registry.hub.docker.com/u/jboss/keycloak/trigger/$DOCKER_HUB_TOKEN/
|
|
|
|
echo "Triggered Docker hub build"
|
2018-08-20 18:38:30 +00:00
|
|
|
elif [ "$DOCKER_HUB_TOKEN" != "" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_REPO_SLUG" == "keycloak/keycloak" ] && [ "$TRAVIS_BRANCH" == "openshift-integration2" ]; then
|
|
|
|
curl -H "Content-Type: application/json" --data '{"docker_tag": "nightly-openshift-integration2"}' -X POST https://registry.hub.docker.com/u/jboss/keycloak/trigger/$DOCKER_HUB_TOKEN/
|
|
|
|
echo "Triggered Docker hub build"
|
2018-08-20 07:04:06 +00:00
|
|
|
fi
|