pull/124/head
Frostebite 2020-08-09 02:58:26 +01:00
parent a0a7edd104
commit 32884dbefc
1 changed files with 48 additions and 47 deletions

View File

@ -11,13 +11,13 @@ export GKE_PROJECT=$1
export GKE_CLUSTER=$2
export GKE_ZONE=$3
# may update this to avoid repeated install, drop me a comment if needed
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
while [ attempts == 0 ]
do
# may update this to avoid repeated install, drop me a comment if needed
sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry"
retry -s 15 -t 20 -v '
STATUS=$(gcloud container clusters list --format="json" --project $GKE_PROJECT |
jq "
@ -65,6 +65,7 @@ metadata:
name: ns-unity-builder-$NSID
labels:
app: unity-builder
EOF && exit 0
EOF
attempts=attempts+1
done