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

Commit

Permalink
Merge pull request #34 from kmova/ci-image
Browse files Browse the repository at this point in the history
build ci image, latest only during releases
  • Loading branch information
Amit Kumar Das authored Feb 19, 2018
2 parents 0eb8ef0 + ddb52dd commit da63656
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 da63656

Please sign in to comment.