File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3636
3737# Retag and push the latest tag.
3838retag_latest :
39- sh bin/retag_latest.sh
39+ - sh bin/retag_latest.sh
4040
Original file line number Diff line number Diff line change 33DOCKER_IMAGE=" chusiang/ansible-jupyter"
44DOCKER_TAG=" alpine-3.6"
55
6- echo ' Pull alpine image.'
6+ echo ' ===> Pull current image .. .'
77docker pull $DOCKER_IMAGE :$DOCKER_TAG
88echo
99
10- echo ' Tag alpine image to latest.'
10+ echo ' ===> Tag current image to latest .. .'
1111docker tag $DOCKER_IMAGE :$DOCKER_TAG $DOCKER_IMAGE :latest
1212echo
1313
14- echo ' Push the latest tag.'
14+ echo ' ===> Push the latest tag .. .'
1515docker push $DOCKER_IMAGE :latest
1616echo
1717
18- echo ' Remove old image.'
19- docker rmi $( docker images | grep ' chusiang/ansible-jupyter ' | grep ' <none>' | awk ' { print $3 }' )
18+ echo ' ===> Remove old image .. .'
19+ docker rmi $( docker images | grep $DOCKER_IMAGE | grep ' <none>' | awk ' { print $3 }' )
You can’t perform that action at this time.
0 commit comments