From cb27a0864fc0506d30b6d9c864f87185a5c99b4a Mon Sep 17 00:00:00 2001 From: Obed N Munoz Date: Wed, 16 Nov 2016 17:30:12 -0600 Subject: [PATCH] travis: Define only-keystone deployment Signed-off-by: Obed N Munoz --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cadcf87..eb90447 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,4 +18,5 @@ script: - travis_retry docker exec -it keystone /usr/bin/verify-keystone.sh deploy: - - "curl -H \"Content-Type: application/json\" --data '{\"build\": true}' -X POST https://registry.hub.docker.com/u/clearlinux/keystone/trigger/$DOCKER_TOKEN/" + # Deploy Keystone if was changed + - "git diff --name-only HEAD^ --staged | grep keystone && curl -H \"Content-Type: application/json\" --data '{\"build\": true}' -X POST https://registry.hub.docker.com/u/clearlinux/keystone/trigger/$DOCKER_TOKEN/"