From 7d865fddbae310663ad34bb9d8812a7dbd1a3ec5 Mon Sep 17 00:00:00 2001 From: Carlos Santana Date: Thu, 17 Jan 2019 13:58:44 -0500 Subject: [PATCH] update jdk x86_64-ubuntu-jdk8u181-b13_openj9-0.9.0 and push latest hash --- 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 71ece46b..34268691 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 c93cebe7..601d950a 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