Skip to content

Commit ba2565d

Browse files
committed
Using same version as for main release
1 parent 8e70fef commit ba2565d

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

Jetson/hub_push_helper.sh

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
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=""
812
for i in $list;
913
do
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
2033
done
2134

22-
echo "Done"
35+
echo "Done"

0 commit comments

Comments
 (0)