Add several attempts for docker push (#258)
* Add several attempts for docker push * Fix retries, add delay
This commit is contained in:
parent
7193b651ec
commit
e47d6d8c1a
1 changed files with 4 additions and 1 deletions
5
Makefile
5
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 \
|
||||
|
|
Loading…
Reference in a new issue