fix: Trim digest when parsing pinniped manifest
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2023-08-21 09:31:11 +02:00
parent 05b271214c
commit eab5cfc688

View File

@ -16,7 +16,8 @@
- name: Parse pinniped manifests for container images
ansible.builtin.shell:
cmd: cat {{ item.dest }} | yq --no-doc eval '.. | .image? | select(.)' | awk '!/ /'
# The pinniped manifest specify container images with *both* tag and digest; which is not supported by skopeo
cmd: cat {{ item.dest }} | yq --no-doc eval '.. | .image? | select(.)' | awk '!/ /' | sub("@.*", "")
register: pinniped_parsedmanifests
loop: "{{ pinniped_manifests.results }}"
loop_control: