James E. Blair e35c529bac Retry pushes to dockerhub
To deal with things like 502 bad gateway errors.

Change-Id: Iaa745394baafcdfedc188f8503b7c7fc9ee92f5b
2019-09-20 09:50:44 -07:00

10 lines
278 B
YAML

- name: Upload tag to dockerhub
command: "docker push {{ image.repository }}:change_{{ zuul.change }}_{{ image_tag }}"
loop: "{{ image.tags | default(['latest']) }}"
loop_control:
loop_var: image_tag
register: result
until: result.rc == 0
retries: 3
delay: 30