From e35c529bac9e0a9d7ea6362a6f1d55cf79953a03 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 20 Sep 2019 09:50:44 -0700 Subject: [PATCH] Retry pushes to dockerhub To deal with things like 502 bad gateway errors. Change-Id: Iaa745394baafcdfedc188f8503b7c7fc9ee92f5b --- roles/upload-docker-image/tasks/push.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/upload-docker-image/tasks/push.yaml b/roles/upload-docker-image/tasks/push.yaml index 878a8bb8e..d47c9c91b 100644 --- a/roles/upload-docker-image/tasks/push.yaml +++ b/roles/upload-docker-image/tasks/push.yaml @@ -3,3 +3,7 @@ loop: "{{ image.tags | default(['latest']) }}" loop_control: loop_var: image_tag + register: result + until: result.rc == 0 + retries: 3 + delay: 30