You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2018/11/08 19:04:28 UTC

[mesos] branch 1.7.x updated: Pushed latest tag to Dockerhub for Mesos mini jenkins script.

This is an automated email from the ASF dual-hosted git repository.

jieyu pushed a commit to branch 1.7.x
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/1.7.x by this push:
     new 862d978  Pushed latest tag to Dockerhub for Mesos mini jenkins script.
862d978 is described below

commit 862d978157c2c6019feb6a9123e1843748d44c8c
Author: Jie Yu <yu...@gmail.com>
AuthorDate: Thu Nov 8 09:26:50 2018 -0800

    Pushed latest tag to Dockerhub for Mesos mini jenkins script.
    
    (cherry picked from commit 2450b893218910a11b12a036ab17912bcd63a8c2)
---
 support/jenkins/mini.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/support/jenkins/mini.sh b/support/jenkins/mini.sh
index 4d33e9f..bd18716 100755
--- a/support/jenkins/mini.sh
+++ b/support/jenkins/mini.sh
@@ -24,8 +24,10 @@ DATE=$(date +%F)
 if [[ "${MESOS_TAG_OR_SHA}" != "${MESOS_SHA}" ]]; then
   # HEAD is also a tag.
   DOCKER_IMAGE_TAG="${MESOS_TAG_OR_SHA}"
+  DOCKER_IMAGE_LATEST_TAG=""
 else
   DOCKER_IMAGE_TAG="${RELEASE_BRANCH}-${DATE}"
+  DOCKER_IMAGE_LATEST_TAG="${RELEASE_BRANCH}"
 fi
 
 echo "MESOS_SHA=${MESOS_SHA}"
@@ -48,3 +50,8 @@ DATE=$(date +%F)
 
 docker login -u "${USERNAME}" -p "${PASSWORD}"
 docker push "${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG}"
+
+if [ ! -z "${DOCKER_IMAGE_LATEST_TAG}" ]; then
+  docker tag "${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG}" "${DOCKER_IMAGE}:${DOCKER_IMAGE_LATEST_TAG}"
+  docker push "${DOCKER_IMAGE}:${DOCKER_IMAGE_LATEST_TAG}"
+fi