Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Onwukike Ibe committed Jul 27, 2016
1 parent e309a7e commit 02ce274
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ script:
after_success:
- ./gradlew jacocoTestReport coveralls
- ./gradlew uploadArchives -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}"

after_script:
- bash travis/publish_docker_image.sh
- pushd 'jaeger-java-crossdock'
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- export REPO=jaegertracing/xdock-java
- export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
- export TAG=`if [ "$BRANCH" == "master" ]; then echo "latest"; else echo $BRANCH; fi`
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, REPO=$REPO, PR=$PR, BRANCH=$BRANCH, TAG=$TAG"
- docker build -f jaeger-java-crossdock/Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
- popd
18 changes: 0 additions & 18 deletions travis/publish_docker_image.sh

This file was deleted.

0 comments on commit 02ce274

Please sign in to comment.