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:
21
21
- env : TEST_ENV=ubuntu-18.04-llvm-6.0
22
22
deploy :
23
23
- provider : script
24
- script : scripts/docker-deploy.sh "$TRAVIS_TAG"
24
+ script : scripts/docker-deploy.sh "$TRAVIS_COMMIT" "$ TRAVIS_TAG"
25
25
on :
26
26
tags : true
27
27
- provider : script
28
- script : scripts/docker-deploy.sh latest
28
+ script : scripts/docker-deploy.sh "$TRAVIS_COMMIT" latest
29
29
on :
30
30
branch : master
31
31
- env : TEST_ENV=ubuntu-18.04-llvm-5.0
Original file line number Diff line number Diff line change 5
5
set -euo pipefail
6
6
IFS=$' \n\t '
7
7
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 "
10
11
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
12
15
13
16
echo " $DOCKER_PASSWORD " | docker login --password-stdin --username " $DOCKER_USERNAME "
14
17
15
- docker push " $IMAGE "
18
+ docker push " $TARGET_IMAGE "
You can’t perform that action at this time.
0 commit comments