ci: reuse docker e2e image across matrix

This commit is contained in:
Peter Steinberger
2026-04-23 06:02:43 +01:00
parent 66f94104c6
commit a2db4c9cdd
8 changed files with 151 additions and 32 deletions

View File

@@ -37,9 +37,12 @@ docker_e2e_build_or_reuse() {
if [ "${OPENCLAW_SKIP_DOCKER_BUILD:-0}" = "1" ] || [ "$skip_build" = "1" ]; then
echo "Reusing Docker image: $image_name"
if ! docker image inspect "$image_name" >/dev/null 2>&1; then
echo "Docker image not found: $image_name" >&2
echo "Build it first or unset OPENCLAW_SKIP_DOCKER_BUILD." >&2
return 1
echo "Docker image not found locally; pulling: $image_name"
if ! docker pull "$image_name"; then
echo "Docker image not found: $image_name" >&2
echo "Build it first or unset OPENCLAW_SKIP_DOCKER_BUILD." >&2
return 1
fi
fi
return 0
fi