We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent196d2af commitd57941dCopy full SHA for d57941d
Makefile
@@ -866,6 +866,16 @@ test-postgres-docker:
866
docker rm -f test-postgres-docker-${POSTGRES_VERSION}||true
867
868
# Try pulling up to three times to avoid CI flakes.
869
+docker pull gcr.io/coder-dev-1/postgres:${POSTGRES_VERSION} || {
870
+retries=2
871
+for try in $(seq 1 ${retries}); do
872
+echo "Failed to pull image, retrying (${try}/${retries})..."
873
+sleep 1
874
+if docker pull gcr.io/coder-dev-1/postgres:${POSTGRES_VERSION}; then
875
+break
876
+fi
877
+done
878
+}
879
docker pull gcr.io/coder-dev-1/postgres:${POSTGRES_VERSION} || \
880
881
docker pull gcr.io/coder-dev-1/postgres:${POSTGRES_VERSION}