777230be59
This new role will be used to replace our upload-docker-image role in the future. Change-Id: I0e2b0cca6575255520aa6d4d48a12128ab5f46cc Signed-off-by: Paul Belanger <pabelanger@redhat.com>
16 lines
432 B
YAML
16 lines
432 B
YAML
- name: Verify repository names
|
|
when: |
|
|
container_registry_credentials is defined
|
|
and zj_image.registry not in container_registry_credentials
|
|
loop: "{{ container_images }}"
|
|
loop_control:
|
|
loop_var: zj_image
|
|
fail:
|
|
msg: "{{ zj_image.registry }} credentials not found"
|
|
|
|
- name: Upload image to container registry
|
|
loop: "{{ container_images }}"
|
|
loop_control:
|
|
loop_var: zj_image
|
|
include_tasks: push.yaml
|