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-ruby.git


The following commit(s) were added to refs/heads/master by this push:
     new 78e1406  publish docker image with git hash with latest (#16)
78e1406 is described below

commit 78e140626858ffb858f34a6714eee695e8f57afd
Author: Carlos Santana <csantan...@apache.org>
AuthorDate: Thu Nov 1 21:01:28 2018 -0400

    publish docker image with git hash with latest (#16)
---
 tools/travis/publish.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
index 78398f9..9e66d40 100755
--- a/tools/travis/publish.sh
+++ b/tools/travis/publish.sh
@@ -40,4 +40,15 @@ 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

Reply via email to