File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -104,17 +104,15 @@ jobs:
104104 - name : Set up Docker Buildx
105105 uses : docker/setup-buildx-action@v3
106106
107- - name : Build test worker Docker image
108- uses : docker/build-push-action@v6
109- with :
110- context : .
111- file : packages/sandbox/Dockerfile
112- target : python # E2E tests require Python for code interpreter tests
113- platforms : linux/amd64
114- load : true
115- tags : cloudflare/sandbox-test:${{ needs.unit-tests.outputs.version }}-python
116- build-args : |
117- SANDBOX_VERSION=${{ needs.unit-tests.outputs.version }}
107+ - name : Build test worker Docker images (base + python)
108+ run : |
109+ VERSION=${{ needs.unit-tests.outputs.version }}
110+ # Build base image (no Python) - used by Sandbox binding
111+ docker build -f packages/sandbox/Dockerfile --target default --platform linux/amd64 \
112+ --build-arg SANDBOX_VERSION=$VERSION -t cloudflare/sandbox-test:$VERSION .
113+ # Build python image - used by SandboxPython binding
114+ docker build -f packages/sandbox/Dockerfile --target python --platform linux/amd64 \
115+ --build-arg SANDBOX_VERSION=$VERSION -t cloudflare/sandbox-test:$VERSION-python .
118116
119117 - name : Deploy test worker
120118 uses : cloudflare/wrangler-action@v3
You can’t perform that action at this time.
0 commit comments