travis: Define only-keystone deployment

Signed-off-by: Obed N Munoz <obed.n.munoz@intel.com>
This commit is contained in:
Obed N Munoz
2016-11-16 22:39:40 -06:00
committed by Obed N Munoz
parent 110b2c59e0
commit cb27a0864f
+2 -1
View File
@@ -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/"