Filter invalid results
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-06-27 10:28:27 +02:00
parent f1c6161bcb
commit 1cdbcaccaf

View File

@ -23,13 +23,16 @@
- name: Parse helm charts for container images
ansible.builtin.shell:
cmd: helm template . | yq --no-doc eval '.. | .image? | select(.)' - | sort -u
cmd: helm template . | yq --no-doc eval '.. | .image? | select(.)' - | sort -u | awk '!/ /'
chdir: /opt/metacluster/helm-charts/{{ item.key }}
register: containerimages
loop: "{{ lookup('ansible.builtin.dict', components) }}"
loop_control:
label: "{{ item.key }}"
- ansible.builtin.debug:
var: containerimages
- name: Pull and store containerimages
ansible.builtin.command:
cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}