CI: route sandbox smoke through setup script

This commit is contained in:
Vincent Koc
2026-03-08 17:51:17 -07:00
parent 291b3398fd
commit f99f346eef
2 changed files with 26 additions and 14 deletions

View File

@@ -51,19 +51,17 @@ jobs:
run: |
set -euo pipefail
docker buildx build \
--load \
--tag openclaw-sandbox-common-smoke:bookworm-slim \
--file Dockerfile.sandbox-common \
--build-arg BASE_IMAGE=openclaw-sandbox-smoke-base:bookworm-slim \
--build-arg PACKAGES=ca-certificates \
--build-arg INSTALL_PNPM=0 \
--build-arg INSTALL_BUN=0 \
--build-arg INSTALL_BREW=0 \
--build-arg FINAL_USER=sandbox \
--cache-from type=gha,scope=sandbox-common-smoke \
--cache-to type=gha,mode=max,scope=sandbox-common-smoke \
.
BASE_IMAGE="openclaw-sandbox-smoke-base:bookworm-slim" \
TARGET_IMAGE="openclaw-sandbox-common-smoke:bookworm-slim" \
PACKAGES="ca-certificates" \
INSTALL_PNPM=0 \
INSTALL_BUN=0 \
INSTALL_BREW=0 \
FINAL_USER=sandbox \
OPENCLAW_DOCKER_BUILD_USE_BUILDX=1 \
OPENCLAW_DOCKER_BUILD_CACHE_FROM="type=gha,scope=sandbox-common-smoke" \
OPENCLAW_DOCKER_BUILD_CACHE_TO="type=gha,mode=max,scope=sandbox-common-smoke" \
scripts/sandbox-common-setup.sh
u="$(docker run --rm openclaw-sandbox-common-smoke:bookworm-slim sh -lc 'id -un')"
test "$u" = "sandbox"