mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 23:47:33 +00:00
cache compose tests
This commit is contained in:
@@ -18,12 +18,16 @@ DIGEST_FILE="$CACHE_DIR/$MAKE_TARGET.digests"
|
|||||||
mkdir -p "$CACHE_DIR"
|
mkdir -p "$CACHE_DIR"
|
||||||
|
|
||||||
get_image_ids() {
|
get_image_ids() {
|
||||||
|
depot pull >/dev/null 2>&1 || true
|
||||||
local ids=""
|
local ids=""
|
||||||
for img in $(echo "$IMAGES"); do
|
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='{{.Id}}' 2>/dev/null || true)
|
||||||
if [[ -z $id ]]; then
|
if [[ -z $id ]]; then
|
||||||
docker pull "$img" >/dev/null 2>&1 || true
|
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='{{.Id}}' 2>/dev/null || true)"
|
||||||
|
fi
|
||||||
|
if [[ -z $id ]]; then
|
||||||
|
id="$(docker image inspect "$img" --format='{{.Id}}' 2>/dev/null || true)"
|
||||||
fi
|
fi
|
||||||
id=${id:-new-and-not-pullable-or-failed-to-build}
|
id=${id:-new-and-not-pullable-or-failed-to-build}
|
||||||
id="${img}@${id}"
|
id="${img}@${id}"
|
||||||
|
Reference in New Issue
Block a user