File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ matrix:
2121 - env : TEST_ENV=ubuntu-18.04-llvm-6.0
2222 deploy :
2323 - provider : script
24- script : scripts/docker-deploy.sh "$TRAVIS_TAG"
24+ script : scripts/docker-deploy.sh "$TRAVIS_COMMIT" "$ TRAVIS_TAG"
2525 on :
2626 tags : true
2727 - provider : script
28- script : scripts/docker-deploy.sh latest
28+ script : scripts/docker-deploy.sh "$TRAVIS_COMMIT" latest
2929 on :
3030 branch : master
3131 - env : TEST_ENV=ubuntu-18.04-llvm-5.0
Original file line number Diff line number Diff line change 55set -euo pipefail
66IFS=$' \n\t '
77
8- IMAGE=" scalabindgen/scala-native-bindgen:${1# v} "
9- echo " Pushing $IMAGE "
8+ SOURCE_IMAGE=" scalabindgen/scala-native-bindgen:${1} "
9+ TARGET_IMAGE=" scalabindgen/scala-native-bindgen:${2# v} "
10+ echo " Pushing $TARGET_IMAGE from $SOURCE_IMAGE "
1011
11- docker tag scalabindgen/scala-native-bindgen:latest " $IMAGE "
12+ if [[ " $SOURCE_IMAGE " != " $TARGET_IMAGE " ]]; then
13+ docker tag " $SOURCE_IMAGE " " $TARGET_IMAGE "
14+ fi
1215
1316echo " $DOCKER_PASSWORD " | docker login --password-stdin --username " $DOCKER_USERNAME "
1417
15- docker push " $IMAGE "
18+ docker push " $TARGET_IMAGE "
You can’t perform that action at this time.
0 commit comments