From ddb52dd3dd0b7d937cdaaa6760a7a8e423907b36 Mon Sep 17 00:00:00 2001 From: kmova Date: Mon, 19 Feb 2018 14:59:41 +0000 Subject: [PATCH] build ci image, latest only during releases Signed-off-by: kmova --- openebs/Makefile | 2 +- openebs/buildscripts/push | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openebs/Makefile b/openebs/Makefile index 5a1945b4098..32903d9fae4 100644 --- a/openebs/Makefile +++ b/openebs/Makefile @@ -26,7 +26,7 @@ push: deploy: @cp openebs-provisioner buildscripts/docker/ - @cd buildscripts/docker && sudo docker build -t ${DIMAGE}:latest . + @cd buildscripts/docker && sudo docker build -t ${DIMAGE}:ci . @sh buildscripts/push clean: diff --git a/openebs/buildscripts/push b/openebs/buildscripts/push index 22d49d29d7c..72aea4db859 100755 --- a/openebs/buildscripts/push +++ b/openebs/buildscripts/push @@ -16,12 +16,12 @@ set -e -IMAGEID=$( sudo docker images -q ${DIMAGE}:latest ) +IMAGEID=$( sudo docker images -q ${DIMAGE}:ci ) if [ ! -z "${DNAME}" ] && [ ! -z "${DPASS}" ]; then sudo docker login -u "${DNAME}" -p "${DPASS}"; - sudo docker push ${DIMAGE}:latest ; + sudo docker push ${DIMAGE}:ci ; if [ ! -z "${TRAVIS_TAG}" ] ; then #Push the release tag image to docker hub repository