Use buildkit for image building - Backend Only
Some checks failed
Build and Deploy with Buildkit / build-deploy (push) Failing after 33s

This commit is contained in:
2025-11-19 15:36:44 +08:00
parent 423d88b928
commit ecdd3c9847

View File

@@ -30,14 +30,14 @@ jobs:
--load \
-t cloudforge-dashboard-backend:${{ github.sha }} \
-t cloudforge-dashboard-backend:latest \
./dashboard-backend
.
# 構建前端
docker buildx build \
--load \
-t cloudforge-dashboard-frontend:${{ github.sha }} \
-t cloudforge-dashboard-frontend:latest \
./dashboard-frontend
# # 構建前端
# docker buildx build \
# --load \
# -t cloudforge-dashboard-frontend:${{ github.sha }} \
# -t cloudforge-dashboard-frontend:latest \
# ./dashboard-frontend
- name: Verify images
run: |
@@ -49,7 +49,7 @@ jobs:
# 保存為 tar用於後續部署
mkdir -p /tmp/images
docker save cloudforge-dashboard-backend:latest -o /tmp/images/backend.tar
docker save cloudforge-dashboard-frontend:latest -o /tmp/images/frontend.tar
# docker save cloudforge-dashboard-frontend:latest -o /tmp/images/frontend.tar
- name: Summary
run: |