You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2019/07/01 15:17:01 UTC

[incubator-openwhisk-apigateway] branch master updated: change travis builds to publish docker images with tag 'nightly' (#346)

This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-apigateway.git


The following commit(s) were added to refs/heads/master by this push:
     new add9e6f  change travis builds to publish docker images with tag 'nightly' (#346)
add9e6f is described below

commit add9e6fcb2a9ec71a1c266f67ef7586203c9f135
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Mon Jul 1 11:16:57 2019 -0400

    change travis builds to publish docker images with tag 'nightly' (#346)
---
 .travis.yml            | 4 ++--
 tools/travis/deploy.sh | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index d7eb3dd..ea9c497 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -55,9 +55,9 @@ script:
   - ./tools/travis/build.sh
 
 deploy:
-  # deploy latest
+  # deploy nightly
   - provider: script
-    script: ./tools/travis/deploy.sh openwhisk apigateway latest
+    script: ./tools/travis/deploy.sh openwhisk apigateway nightly
     on:
       branch: master
   # deploy tag
diff --git a/tools/travis/deploy.sh b/tools/travis/deploy.sh
index 2950a57..c56e0bd 100755
--- a/tools/travis/deploy.sh
+++ b/tools/travis/deploy.sh
@@ -30,8 +30,8 @@ docker build . --tag ${dockerhub_image}
 
 echo docker push ${dockerhub_image}
 docker push ${dockerhub_image}
-# if doing latest also push a tag with the hash commit
-if [ ${dockerhub_image_tag} == "latest" ]; then
+# if doing nightly also push a tag with the hash commit
+if [ ${dockerhub_image_tag} == "nightly" ]; then
 SHORT_COMMIT=`git rev-parse --short HEAD`
 docker tag ${dockerhub_image} ${dockerhub_image_prefix}/${dockerhub_image_name}:${SHORT_COMMIT}
 docker push ${dockerhub_image_prefix}/${dockerhub_image_name}:${SHORT_COMMIT}