From 14c82f4044fa214684b47c14212483804198cb2c Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Thu, 23 Apr 2020 14:47:07 -0400 Subject: [PATCH] Adds a 30 second delay before refreshing DC/OS, in case Docker Hub takes a bit to update its cache --- deploy.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy.sh b/deploy.sh index c8c8be21..a40d2d82 100755 --- a/deploy.sh +++ b/deploy.sh @@ -5,5 +5,10 @@ echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin docker build --no-cache -t sartography/cr-connect-backend:latest . || exit 1; docker push sartography/cr-connect-backend:latest || exit 1; +# Wait for Docker Hub +echo "Publishing to Docker Hub..." +sleep 30 + # Notify UVA DCOS that Docker image has been updated +echo "Refreshing DC/OS..." aws sqs send-message --queue-url 'https://queue.amazonaws.com/474683445819/dcos-refresh' --message-body 'crconnect/backend' || exit 1;