Add retries to skopeo copy operations
We think that sometimes the network derps so the whole copy goes bad. Add retries in to the mix since a copy command is idempotent. Change-Id: I2d2891f2ebe3ca6a99874d9cf028addea888c3b7
This commit is contained in:
parent
9674e1d442
commit
454b5349b0
@ -74,6 +74,9 @@
|
||||
skopeo --insecure-policy copy
|
||||
{{ item.url }}
|
||||
docker://127.0.0.1:{{ socat_port }}/{{ item.metadata.repository }}:{{ item.metadata.tag }}
|
||||
retries: 3
|
||||
register: result
|
||||
until: result is success
|
||||
when: "'metadata' in item and item.metadata.type | default('') == 'container_image'"
|
||||
loop: "{{ zuul.artifacts | default([]) }}"
|
||||
always:
|
||||
|
@ -3,6 +3,9 @@
|
||||
skopeo --insecure-policy copy
|
||||
docker://127.0.0.1:{{ socat_port }}/{{ image.repository }}:{{ image_tag }}
|
||||
docker://{{ intermediate_registry.host | ipwrap }}:{{ intermediate_registry.port}}/{{ image.repository }}:{{ zuul.build }}_{{ image_tag }}
|
||||
retries: 3
|
||||
register: result
|
||||
until: result is success
|
||||
loop: "{{ image.tags | default(['latest']) }}"
|
||||
loop_control:
|
||||
loop_var: image_tag
|
||||
|
Loading…
Reference in New Issue
Block a user