CI:用 buildx 跨架构构建 arm64 镜像
build-test-deploy / ci (push) Failing after 9m52s

This commit is contained in:
zjk
2026-08-14 13:15:12 +08:00
parent b7fceb2878
commit 8d3bbfbf8c
+4 -2
View File
@@ -40,7 +40,7 @@ jobs:
#------------------------------------------------------------------- #-------------------------------------------------------------------
- name: Install tools - name: Install tools
run: | run: |
apk add --no-cache docker-cli rsync openssh-client apk add --no-cache docker-cli docker-cli-buildx rsync openssh-client
- name: Verify docker - name: Verify docker
run: | run: |
@@ -59,7 +59,9 @@ jobs:
#------------------------------------------------------------------- #-------------------------------------------------------------------
- name: Build arm64 CI image - name: Build arm64 CI image
run: | run: |
docker build -t "$CI_IMAGE" -f ci/Dockerfile . docker buildx version
docker buildx build --platform linux/arm64 --load \
-t "$CI_IMAGE" -f ci/Dockerfile .
#------------------------------------------------------------------- #-------------------------------------------------------------------
# Build project + unit test + startup smoke test (inside arm64) # Build project + unit test + startup smoke test (inside arm64)