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

Commit da63656

Browse files
author
Amit Kumar Das
authored
Merge pull request #34 from kmova/ci-image
build ci image, latest only during releases
2 parents 0eb8ef0 + ddb52dd commit da63656

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openebs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ push:
2626

2727
deploy:
2828
@cp openebs-provisioner buildscripts/docker/
29-
@cd buildscripts/docker && sudo docker build -t ${DIMAGE}:latest .
29+
@cd buildscripts/docker && sudo docker build -t ${DIMAGE}:ci .
3030
@sh buildscripts/push
3131

3232
clean:

openebs/buildscripts/push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
set -e
1818

19-
IMAGEID=$( sudo docker images -q ${DIMAGE}:latest )
19+
IMAGEID=$( sudo docker images -q ${DIMAGE}:ci )
2020

2121
if [ ! -z "${DNAME}" ] && [ ! -z "${DPASS}" ];
2222
then
2323
sudo docker login -u "${DNAME}" -p "${DPASS}";
24-
sudo docker push ${DIMAGE}:latest ;
24+
sudo docker push ${DIMAGE}:ci ;
2525
if [ ! -z "${TRAVIS_TAG}" ] ;
2626
then
2727
#Push the release tag image to docker hub repository

0 commit comments

Comments
 (0)