Skip to content

Commit c916db9

Browse files
authored
change travis builds to publish docker images with tag 'nightly' (#71)
1 parent 4a5922c commit c916db9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ deploy:
4646
condition: "${TRAVIS_TAG%@*} = dockerskeleton || ${TRAVIS_TAG%@*} = example"
4747
repo: apache/incubator-openwhisk-runtime-docker
4848
- provider: script
49-
script: "./tools/travis/publish.sh openwhisk dockerskeleton latest && ./tools/travis/publish.sh openwhisk example latest"
49+
script: "./tools/travis/publish.sh openwhisk dockerskeleton nightly && ./tools/travis/publish.sh openwhisk example nightly"
5050
on:
5151
branch: master
5252
repo: apache/incubator-openwhisk-runtime-docker

tools/travis/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ if [[ ! -z ${GRADLE_BUILD} ]] && [[ ! -z ${IMAGE_PREFIX} ]] && [[ ! -z ${IMAGE_T
4848
-PdockerImagePrefix=${IMAGE_PREFIX} \
4949
-PdockerImageTag=${IMAGE_TAG}
5050

51-
# if doing latest also push a tag with the hash commit
52-
if [ ${IMAGE_TAG} == "latest" ]; then
51+
# if doing nightly also push a tag with the hash commit
52+
if [ ${IMAGE_TAG} == "nightly" ]; then
5353
SHORT_COMMIT=`git rev-parse --short HEAD`
5454
TERM=dumb ./gradlew \
5555
${GRADLE_BUILD} \

0 commit comments

Comments
 (0)