cache compose tests

This commit is contained in:
Elio Bischof
2025-06-19 09:51:14 +02:00
parent 2d2aa255d0
commit c2e5cda0d4

View File

@@ -18,12 +18,16 @@ DIGEST_FILE="$CACHE_DIR/$MAKE_TARGET.digests"
mkdir -p "$CACHE_DIR"
get_image_ids() {
depot pull >/dev/null 2>&1 || true
local ids=""
for img in $(echo "$IMAGES"); do
local id=$(docker image inspect "$img" --format='{{.Id}}' 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)"
fi
if [[ -z $id ]]; then
id="$(docker image inspect "$img" --format='{{.Id}}' 2>/dev/null || true)"
fi
id=${id:-new-and-not-pullable-or-failed-to-build}
id="${img}@${id}"