Skip to content

Commit

Permalink
update build command (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
s12v authored Sep 2, 2016
1 parent 5f06850 commit 6bf854a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jdk:

env:
global:
- DOCKER_HUB_TRIGGER_URL=https://registry.hub.docker.com/u/s12v/sns/trigger
- ENDPOINT=http://localhost:9911/
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=bar
Expand Down Expand Up @@ -54,8 +55,9 @@ after_success:
- bash <(curl -s https://codecov.io/bash)
- |
if [ "$TRAVIS_BRANCH" = "master" ]; then
curl -H 'Content-Type: application/json' --data '{"source_type": "Branch", "source_name": "master"}' \
-X POST "https://registry.hub.docker.com/u/s12v/sns/trigger/${DOCKER_HUB_TRIGGER_TOKEN}/"
curl -H 'Content-Type: application/json' \
-X POST "${DOCKER_HUB_TRIGGER_URL}/${DOCKER_HUB_TRIGGER_TOKEN}/" \
--data '{"source_type": "Branch", "source_name": "master"}'
fi
deploy:
Expand All @@ -71,5 +73,5 @@ deploy:
after_deploy:
- >
curl -H 'Content-Type: application/json'
--data '{"source_type": "Tag", "source_name": "$TRAVIS_TAG"}'
-X POST "https://registry.hub.docker.com/u/s12v/sns/trigger/${DOCKER_HUB_TRIGGER_TOKEN}/"
-X POST "${DOCKER_HUB_TRIGGER_URL}/${DOCKER_HUB_TRIGGER_TOKEN}/"
--data "{\"source_type\": \"Tag\", \"source_name\": \"$TRAVIS_TAG"\}"

0 comments on commit 6bf854a

Please sign in to comment.