From eab5cfc688dba23360c9bc43e217e09004560e25 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Mon, 21 Aug 2023 09:31:11 +0200 Subject: [PATCH] fix: Trim digest when parsing pinniped manifest --- ansible/roles/assets/tasks/containerimages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/assets/tasks/containerimages.yml b/ansible/roles/assets/tasks/containerimages.yml index ee70631..e028ee9 100644 --- a/ansible/roles/assets/tasks/containerimages.yml +++ b/ansible/roles/assets/tasks/containerimages.yml @@ -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: