From e47d6d8c1ac3ab215acdf4beda0679ae8c7e15f9 Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Wed, 17 Jun 2020 11:24:52 +0300 Subject: [PATCH] Add several attempts for docker push (#258) * Add several attempts for docker push * Fix retries, add delay --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ce11a08..fad186b 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,10 @@ clean-docker: docker rmi -f $$(docker images -q $(COMPANY_NAME_LOW)/*) || exit 0 deploy: $(DOCKER_TARGETS) - $(foreach TARGET,$(DOCKER_TARGETS),docker push $(subst $(COLON),:,$(TARGET));) + $(foreach TARGET,$(DOCKER_TARGETS), \ + for i in {1..3}; do \ + docker push $(subst $(COLON),:,$(TARGET)) && break || sleep 1m; \ + done;) publish: $(DOCKER_ARCH) aws s3 cp \