Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Commit

Permalink
build ci image, latest only during releases
Browse files Browse the repository at this point in the history
Signed-off-by: kmova <[email protected]>
  • Loading branch information
kmova committed Feb 19, 2018
1 parent 0eb8ef0 commit ddb52dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openebs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions openebs/buildscripts/push
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ddb52dd

Please sign in to comment.