mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-08 19:19:28 +00:00
Run registry tests only when registry is present. (#729)
This commit is contained in:
parent
b1dfe49e7d
commit
8ee0452776
@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
- name: Determining pushed image names
|
- name: Determining pushed image names
|
||||||
set_fact:
|
set_fact:
|
||||||
hello_world_image_base: "{{ registry_address }}/test/hello-world"
|
hello_world_image_base: "{{ registry_address | default('localhost') }}/test/hello-world"
|
||||||
test_image_base: "{{ registry_address }}/test/{{ iname }}"
|
test_image_base: "{{ registry_address | default('localhost') }}/test/{{ iname }}"
|
||||||
|
|
||||||
- name: Registering image name
|
- name: Registering image name
|
||||||
set_fact:
|
set_fact:
|
||||||
@ -20,6 +20,9 @@
|
|||||||
## interact with test registry #####################################
|
## interact with test registry #####################################
|
||||||
####################################################################
|
####################################################################
|
||||||
|
|
||||||
|
- name: Run registry tests only when registry is present
|
||||||
|
when: registry_address is defined
|
||||||
|
block:
|
||||||
- name: Make sure image is not there
|
- name: Make sure image is not there
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ hello_world_image_base }}:latest"
|
name: "{{ hello_world_image_base }}:latest"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user