openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgr...@apache.org
Subject [incubator-openwhisk-apigateway] branch master updated: travis push lastest as hash commit tag (#323)
Date Fri, 05 Oct 2018 11:07:33 GMT
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 5921317  travis push lastest as hash commit tag (#323)
5921317 is described below

commit 592131758e872c7423998b3ae1b14d967a694f68
Author: Carlos Santana <csantanapr@apache.org>
AuthorDate: Fri Oct 5 07:07:24 2018 -0400

    travis push lastest as hash commit tag (#323)
---
 tools/travis/deploy.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/travis/deploy.sh b/tools/travis/deploy.sh
index adc5c9d..2950a57 100755
--- a/tools/travis/deploy.sh
+++ b/tools/travis/deploy.sh
@@ -30,3 +30,9 @@ 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
+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}
+fi


Mime
View raw message