mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-10 23:12:40 +01:00
10
build-all.sh
10
build-all.sh
@@ -30,7 +30,15 @@ for f in "${files[@]}"; do
|
|||||||
echo "Successfully built ${base}:${suite} with context ${build_dir}"
|
echo "Successfully built ${base}:${suite} with context ${build_dir}"
|
||||||
echo " --- "
|
echo " --- "
|
||||||
|
|
||||||
docker push --disable-content-trust=false r.j3ss.co/${base}:${suite}
|
# try push a few times because notary server sometimes returns 401 for
|
||||||
|
# absolutely no reason
|
||||||
|
n=0
|
||||||
|
until [ $n -ge 5 ]; do
|
||||||
|
docker push --disable-content-trust=false r.j3ss.co/${base}:${suite} && break
|
||||||
|
echo "Try #$n failed... sleeping for 15 seconds"
|
||||||
|
n=$[$n+1]
|
||||||
|
sleep 15
|
||||||
|
done
|
||||||
|
|
||||||
# also push the tag latest for "stable" tags
|
# also push the tag latest for "stable" tags
|
||||||
if [[ "$suite" == "stable" ]]; then
|
if [[ "$suite" == "stable" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user