Fix
parent
683c605118
commit
0d7dd1b256
|
|
@ -15,7 +15,7 @@ GKE_ZONE=$3
|
||||||
sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry"
|
sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry"
|
||||||
|
|
||||||
attempts=0
|
attempts=0
|
||||||
while [ "$attempts" == "0" ]
|
while [ $attempts -gt 0 ]
|
||||||
do
|
do
|
||||||
retry -s 15 -t 20 -v '
|
retry -s 15 -t 20 -v '
|
||||||
STATUS=$(gcloud container clusters list --format="json" --project $GKE_PROJECT |
|
STATUS=$(gcloud container clusters list --format="json" --project $GKE_PROJECT |
|
||||||
|
|
@ -63,5 +63,5 @@ metadata:
|
||||||
app: unity-builder
|
app: unity-builder
|
||||||
EOF && exit 0
|
EOF && exit 0
|
||||||
|
|
||||||
attempts=attempts+1
|
attempts=$(($attempts+1))
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue