openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From japet...@apache.org
Subject [incubator-openwhisk-runtime-nodejs] branch master updated: push a hashcommit of the image in travis publish (#89)
Date Fri, 14 Sep 2018 19:05:36 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 3af066e  push a hashcommit of the image in travis publish (#89)
3af066e is described below

commit 3af066efdc1e21fd35490ff61829c9d70d47750e
Author: Carlos Santana <csantanapr@apache.org>
AuthorDate: Fri Sep 14 15:05:32 2018 -0400

    push a hashcommit of the image in travis publish (#89)
    
    Closes #88
---
 tools/travis/publish.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
index cfdd8d3..74acdb2 100755
--- a/tools/travis/publish.sh
+++ b/tools/travis/publish.sh
@@ -46,4 +46,16 @@ TERM=dumb ./gradlew \
 -PdockerRegistry=docker.io \
 -PdockerImagePrefix=${IMAGE_PREFIX} \
 -PdockerImageTag=${IMAGE_TAG}
+
+  # if doing latest also push a tag with the hash commit
+  if [ ${IMAGE_TAG} == "latest" ]; then
+  SHORT_COMMIT=`git rev-parse --short HEAD`
+  TERM=dumb ./gradlew \
+  :core:${RUNTIME}:distDocker \
+  -PdockerRegistry=docker.io \
+  -PdockerImagePrefix=${IMAGE_PREFIX} \
+  -PdockerImageTag=${SHORT_COMMIT}
+  fi
+
+
 fi


Mime
View raw message