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 \
|
--load \
|
||||||
-t cloudforge-dashboard-backend:${{ github.sha }} \
|
-t cloudforge-dashboard-backend:${{ github.sha }} \
|
||||||
-t cloudforge-dashboard-backend:latest \
|
-t cloudforge-dashboard-backend:latest \
|
||||||
./dashboard-backend
|
.
|
||||||
|
|
||||||
# 構建前端
|
# # 構建前端
|
||||||
docker buildx build \
|
# docker buildx build \
|
||||||
--load \
|
# --load \
|
||||||
-t cloudforge-dashboard-frontend:${{ github.sha }} \
|
# -t cloudforge-dashboard-frontend:${{ github.sha }} \
|
||||||
-t cloudforge-dashboard-frontend:latest \
|
# -t cloudforge-dashboard-frontend:latest \
|
||||||
./dashboard-frontend
|
# ./dashboard-frontend
|
||||||
|
|
||||||
- name: Verify images
|
- name: Verify images
|
||||||
run: |
|
run: |
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
# 保存為 tar,用於後續部署
|
# 保存為 tar,用於後續部署
|
||||||
mkdir -p /tmp/images
|
mkdir -p /tmp/images
|
||||||
docker save cloudforge-dashboard-backend:latest -o /tmp/images/backend.tar
|
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
|
- name: Summary
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user