Use buildkit for image building - Backend Only
Some checks failed
Build and Deploy with Buildkit / build-deploy (push) Failing after 33s
Some checks failed
Build and Deploy with Buildkit / build-deploy (push) Failing after 33s
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user