[arvados] created: 2.7.0-5826-ge90bc73eb4
git repository hosting
git at public.arvados.org
Tue Jan 16 21:49:53 UTC 2024
at e90bc73eb4afd8bd2c98846cff460f8891b97b41 (commit)
commit e90bc73eb4afd8bd2c98846cff460f8891b97b41
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Tue Jan 16 16:49:10 2024 -0500
21394: Adjust how tags are pushed in build/run-build-docker-images.sh
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/build/run-build-docker-images.sh b/build/run-build-docker-images.sh
index 00ef2de417..d7ee41743f 100755
--- a/build/run-build-docker-images.sh
+++ b/build/run-build-docker-images.sh
@@ -90,25 +90,28 @@ docker_push () {
if [[ ! -z "$tags" ]]
then
- for tag in $( echo $tags|tr "," " " )
+ for tag in $(echo $tags|tr "," " " )
do
$DOCKER tag $1:$GITHEAD $1:$tag
done
fi
- # Sometimes docker push fails; retry it a few times if necessary.
- for i in `seq 1 5`; do
- $DOCKER push $*
- ECODE=$?
- if [[ "$ECODE" == "0" ]]; then
- break
- fi
+ for tag in $(echo $tags|tr "," " " )
+ do
+ # Sometimes docker push fails; retry it a few times if necessary.
+ for i in `seq 1 5`; do
+ $DOCKER push $1:$tag
+ ECODE=$?
+ if [[ "$ECODE" == "0" ]]; then
+ break
+ fi
+ done
+
+ if [[ "$ECODE" != "0" ]]; then
+ title "!!!!!! docker push $1:$tag failed !!!!!!"
+ EXITCODE=$(($EXITCODE + $ECODE))
+ fi
done
-
- if [[ "$ECODE" != "0" ]]; then
- title "!!!!!! docker push $* failed !!!!!!"
- EXITCODE=$(($EXITCODE + $ECODE))
- fi
}
timer_reset() {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list