Skip to content

Commit 0bfc767

Browse files
committed
fix: 修复Docker镜像构建步骤的位置,确保在清理磁盘空间后正确构建
1 parent 22385f1 commit 0bfc767

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@ jobs:
2828
- name: Set up Docker Buildx
2929
uses: docker/setup-buildx-action@v3
3030

31-
- name: Build sandbox Docker image for ${{ matrix.arch }}
32-
run: |
33-
cd sandbox
34-
docker buildx build \
35-
--platform linux/${{ matrix.arch }} \
36-
--tag e2b-sandbox:latest \
37-
--load \
38-
.
39-
4031
- name: Clean up disk space
4132
run: |
4233
df -h
@@ -47,6 +38,15 @@ jobs:
4738
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
4839
df -h
4940
41+
- name: Build sandbox Docker image for ${{ matrix.arch }}
42+
run: |
43+
cd sandbox
44+
docker buildx build \
45+
--platform linux/${{ matrix.arch }} \
46+
--tag e2b-sandbox:latest \
47+
--load \
48+
.
49+
5050
- name: Save Docker image to tar.gz
5151
run: |
5252
docker save e2b-sandbox:latest | gzip -1 > e2b-sandbox-${{ matrix.arch }}.tar.gz

0 commit comments

Comments
 (0)