Housekeeping;Improved feedback;Prevent duplicates
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
92eee0744e
commit
b890a03760
@ -21,10 +21,11 @@
|
|||||||
containerimages_{{ item.source }}: "{{ item.results }}"
|
containerimages_{{ item.source }}: "{{ item.results }}"
|
||||||
loop:
|
loop:
|
||||||
- source: charts
|
- source: charts
|
||||||
# results: "{{ (containerimages.results | map(attribute='stdout_lines') | select('defined') | flatten }}"
|
|
||||||
results: "{{ containerimages | json_query('results[*].stdout_lines') | select() | flatten | list }}"
|
results: "{{ containerimages | json_query('results[*].stdout_lines') | select() | flatten | list }}"
|
||||||
- source: manifests
|
- source: manifests
|
||||||
results: "{{ parsedmanifests | json_query('results[*].stdout_lines') | select() | flatten | list }}"
|
results: "{{ parsedmanifests | json_query('results[*].stdout_lines') | select() | flatten | list }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.source }}"
|
||||||
|
|
||||||
- name: Pull and store containerimages
|
- name: Pull and store containerimages
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
@ -35,4 +36,4 @@
|
|||||||
docker://{{ item }} \
|
docker://{{ item }} \
|
||||||
docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}_{{ lookup('ansible.builtin.password', '/dev/null length=5 chars=ascii_lowercase,digits seed={{ item }}') }}.tar:{{ item }}
|
docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}_{{ lookup('ansible.builtin.password', '/dev/null length=5 chars=ascii_lowercase,digits seed={{ item }}') }}.tar:{{ item }}
|
||||||
chdir: /opt/metacluster/container-images
|
chdir: /opt/metacluster/container-images
|
||||||
loop: "{{ containerimages_charts + containerimages_manifests + dependencies.container_images | unique }}"
|
loop: "{{ (containerimages_charts + containerimages_manifests + dependencies.container_images) | flatten | unique | sort }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user