File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed
Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- tag=` make -f Makefile | grep tag | cut -d ' :' -f 2`
4- list=` make -f Makefile| grep -E ' \-[[:digit:]]' | tr -s ' ' | cut -d ' ' -f 2`
3+ SCRIPTPATH=" $( cd " $( dirname " $0 " ) " ; pwd -P ) "
4+
5+ tag=` make -f ${SCRIPTPATH} /Makefile | grep tag | cut -d ' :' -f 2`
6+ list=` make -f ${SCRIPTPATH} /Makefile| grep ' -' | tr -s ' ' | cut -d ' ' -f 2`
57
68# Make sure to be `docker login`-ed
79
10+ echo " ***** Getting list from Makefile"
11+ todo=" "
812for i in $list ;
913do
10- v=` echo $i | sed ' s/-/:/2 ' `
14+ v=` echo $i | sed ' s/-/:/' `
1115 t=` echo $tag | sed ' s/\s+//' `
1216
1317 cid=" datamachines/$v -$t "
18+ echo " - $cid "
19+ todo=" $todo $cid "
20+ done
1421
22+ echo " "
23+ echo " Press Ctl+c within 5 seconds to cancel"
24+ for i in 5 4 3 2 1; do echo -n " $i " ; sleep 1; done ; echo " "
25+
26+ for cid in $todo ;
27+ do
1528 echo " "
16- echo " ##### $cid "
17- docker push $cid || exit 1
1829 echo " "
19-
30+ echo " ***** Pushing: $cid "
31+ echo " "
32+ docker push $cid || exit 1
2033done
2134
22- echo " Done"
35+ echo " Done"
You can’t perform that action at this time.
0 commit comments