ci: centralize docker build wrapper

This commit is contained in:
Peter Steinberger
2026-04-26 22:14:33 +01:00
parent 824c3e2b71
commit b28de9a7d9
13 changed files with 115 additions and 40 deletions

View File

@@ -2,12 +2,12 @@
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "$ROOT_DIR/scripts/lib/docker-e2e-logs.sh"
source "$ROOT_DIR/scripts/lib/docker-build.sh"
IMAGE_NAME="${OPENCLAW_CLEANUP_SMOKE_IMAGE:-openclaw-cleanup-smoke:local}"
PLATFORM="${OPENCLAW_CLEANUP_SMOKE_PLATFORM:-linux/amd64}"
echo "==> Build image: $IMAGE_NAME"
run_logged cleanup-build docker build \
docker_build_run cleanup-build \
-t "$IMAGE_NAME" \
-f "$ROOT_DIR/scripts/docker/cleanup-smoke/Dockerfile" \
"$ROOT_DIR"