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-java.git
The following commit(s) were added to refs/heads/master by this push:
new 7290453 update jdk x86_64-ubuntu-jdk8u181-b13_openj9-0.9.0 and push
latest hash (#77)
7290453 is described below
commit 7290453cd4b7800d8239cd367f74a3dd9b223a0d
Author: Carlos Santana <[email protected]>
AuthorDate: Thu Jan 17 14:23:13 2019 -0500
update jdk x86_64-ubuntu-jdk8u181-b13_openj9-0.9.0 and push latest hash
(#77)
---
core/java8/Dockerfile | 2 +-
tools/travis/publish.sh | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/core/java8/Dockerfile b/core/java8/Dockerfile
index 71ece46..3426869 100644
--- a/core/java8/Dockerfile
+++ b/core/java8/Dockerfile
@@ -15,7 +15,7 @@
# limitations under the License.
#
-FROM adoptopenjdk/openjdk8-openj9:jdk8u162-b12_openj9-0.8.0
+FROM adoptopenjdk/openjdk8-openj9:x86_64-ubuntu-jdk8u181-b13_openj9-0.9.0
RUN rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get update \
&& apt-get install -y --no-install-recommends locales \
diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
index c93cebe..601d950 100755
--- a/tools/travis/publish.sh
+++ b/tools/travis/publish.sh
@@ -46,4 +46,15 @@ core:${RUNTIME}:distDocker \
-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