This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-ballerina.git
The following commit(s) were added to refs/heads/master by this push:
new de4bfa4 Publish image hash tag (#12)
de4bfa4 is described below
commit de4bfa436cde3bb8bba1617228c03cb2a6b35ab7
Author: Carlos Santana <[email protected]>
AuthorDate: Wed Feb 6 19:43:49 2019 -0500
Publish image hash tag (#12)
---
.gitignore | 5 +++++
tools/travis/publish.sh | 10 ++++++++++
2 files changed, 15 insertions(+)
diff --git a/.gitignore b/.gitignore
index fe312df..74d5fdc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,8 @@ ballerina/proxy/build/
ballerina/proxy/out/
tests/build
tests/out/
+
+.classpath
+.settings
+.project
+bin/
diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
index 77a19fd..4a2420a 100755
--- a/tools/travis/publish.sh
+++ b/tools/travis/publish.sh
@@ -38,3 +38,13 @@ 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 \
+ ::ballerina:distDocker \
+ -PdockerRegistry=docker.io \
+ -PdockerImagePrefix=${IMAGE_PREFIX} \
+ -PdockerImageTag=${SHORT_COMMIT}
+fi