From dc8268b30c98191ccad28f02fc9fc1e7f4d2a483 Mon Sep 17 00:00:00 2001 From: stianst Date: Mon, 20 Aug 2018 20:38:30 +0200 Subject: [PATCH] Update triggers for Docker Hub --- .travis/docker-hub-master-trigger.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis/docker-hub-master-trigger.sh b/.travis/docker-hub-master-trigger.sh index c18106bc1b..827498499f 100755 --- a/.travis/docker-hub-master-trigger.sh +++ b/.travis/docker-hub-master-trigger.sh @@ -1,6 +1,9 @@ #!/bin/bash -if [ "$DOCKER_HUB_TOKEN" != "" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_REPO_SLUG" == "keycloak/keycloak" ]; then +if [ "$DOCKER_HUB_TOKEN" != "" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_REPO_SLUG" == "keycloak/keycloak" ] && [ "$TRAVIS_BRANCH" == "master" ]; then 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" +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" fi