Skip to content

Commit fe995b2

Browse files
committed
Build both base and python images in release E2E tests
1 parent 0a2cb93 commit fe995b2

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)