mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-12 04:31: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
|
||||
set_fact:
|
||||
hello_world_image_base: "{{ registry_address }}/test/hello-world"
|
||||
test_image_base: "{{ registry_address }}/test/{{ iname }}"
|
||||
hello_world_image_base: "{{ registry_address | default('localhost') }}/test/hello-world"
|
||||
test_image_base: "{{ registry_address | default('localhost') }}/test/{{ iname }}"
|
||||
|
||||
- name: Registering image name
|
||||
set_fact:
|
||||
@ -20,6 +20,9 @@
|
||||
## 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
|
||||
docker_image:
|
||||
name: "{{ hello_world_image_base }}:latest"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user