0f55195335
This also adds support for using a self hosted registry with the docker roles. Change-Id: I43caf46cfcc5d335ce14d72ad2abbef732b24645
10 lines
412 B
YAML
10 lines
412 B
YAML
- name: Upload tag to registry
|
|
command: "docker push {{ docker_registry | ternary(docker_registry + '/', '' ) }}{{ zj_image.repository }}:{{ upload_docker_image_promote | ternary('change_' + zuul.get('change', '') + '_', '') }}{{ zj_image_tag }}"
|
|
loop: "{{ zj_image.tags | default(['latest']) }}"
|
|
loop_control:
|
|
loop_var: zj_image_tag
|
|
register: result
|
|
until: result.rc == 0
|
|
retries: 3
|
|
delay: 30
|