mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-27 17:18:52 +00:00
16 lines
170 B
Bash
Executable File
16 lines
170 B
Bash
Executable File
#!/bin/bash
|
|
|
|
IMAGE=$1
|
|
retries=0
|
|
|
|
while [ "$retries" -lt 3 ]; do
|
|
let retries=retries+1
|
|
docker push $IMAGE
|
|
ret=$?
|
|
if [ "$ret" -eq 0 ]; then
|
|
break
|
|
fi
|
|
done
|
|
|
|
exit $ret
|