From 66f78f237def0232553c6ae06f413d672d0bccbf Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Thu, 19 Jun 2025 12:31:51 +0200 Subject: [PATCH] cache compose tests --- scripts/run_or_skip.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/run_or_skip.sh b/scripts/run_or_skip.sh index 6e11374404..3baeaec780 100755 --- a/scripts/run_or_skip.sh +++ b/scripts/run_or_skip.sh @@ -20,13 +20,13 @@ mkdir -p "$CACHE_DIR" get_image_ids() { local ids="" for img in $(echo "$IMAGES"); do - local id=$(docker image inspect "$img" --format='{{.Id}}' 2>/dev/null || true) + local id=$(docker image inspect "$img" --format='{{index .RepoDigests 0}}' 2>/dev/null || true) if [[ -z $id ]]; then docker pull "$img" >/dev/null 2>&1 || true - id=$(docker image inspect "$img" --format='{{.Id}}' 2>/dev/null || true) + id=$(docker image inspect "$img" --format='{{index .RepoDigests 0}}' 2>/dev/null || true) fi if [[ -z $id ]]; then - id=$(docker image inspect "$img" --format='{{.Id}}' 2>/dev/null || true) + id=$(docker image inspect "$img" --format='{{index .RepoDigests 0}}' 2>/dev/null || true) fi id=${id:-new-and-not-pullable-or-failed-to-build} id="${img}@${id}"