File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515# limitations under the License.
1616#
1717
18- FROM adoptopenjdk/openjdk8-openj9:jdk8u162-b12_openj9-0.8 .0
18+ FROM adoptopenjdk/openjdk8-openj9:x86_64-ubuntu-jdk8u181-b13_openj9-0.9 .0
1919
2020RUN rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get update \
2121 && apt-get install -y --no-install-recommends locales \
Original file line number Diff line number Diff line change @@ -46,4 +46,15 @@ core:${RUNTIME}:distDocker \
4646-PdockerRegistry=docker.io \
4747-PdockerImagePrefix=${IMAGE_PREFIX} \
4848-PdockerImageTag=${IMAGE_TAG}
49+
50+ # if doing latest also push a tag with the hash commit
51+ if [ ${IMAGE_TAG} == " latest" ]; then
52+ SHORT_COMMIT=` git rev-parse --short HEAD`
53+ TERM=dumb ./gradlew \
54+ core:${RUNTIME} :distDocker \
55+ -PdockerRegistry=docker.io \
56+ -PdockerImagePrefix=${IMAGE_PREFIX} \
57+ -PdockerImageTag=${SHORT_COMMIT}
58+ fi
59+
4960fi
You can’t perform that action at this time.
0 commit comments