Skip to content

Commit 4cdbdbe

Browse files
committed
Add --platform flag to docker create commands
1 parent 059e2d9 commit 4cdbdbe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pkg-pr-new.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
- name: Extract standalone binary from Docker image
113113
run: |
114114
VERSION=${{ steps.package-version.outputs.version }}
115-
CONTAINER_ID=$(docker create cloudflare/sandbox:$VERSION)
115+
CONTAINER_ID=$(docker create --platform linux/amd64 cloudflare/sandbox:$VERSION)
116116
docker cp $CONTAINER_ID:/container-server/sandbox ./sandbox-linux-x64
117117
docker rm $CONTAINER_ID
118118
chmod +x ./sandbox-linux-x64

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
- name: Extract standalone binary from Docker image
217217
run: |
218218
VERSION=${{ needs.unit-tests.outputs.version }}
219-
CONTAINER_ID=$(docker create cloudflare/sandbox:$VERSION)
219+
CONTAINER_ID=$(docker create --platform linux/amd64 cloudflare/sandbox:$VERSION)
220220
docker cp $CONTAINER_ID:/container-server/sandbox ./sandbox-linux-x64
221221
docker rm $CONTAINER_ID
222222
file ./sandbox-linux-x64

0 commit comments

Comments
 (0)