检测buildx问题
This commit is contained in:
@@ -20,6 +20,16 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0 # 获取完整的提交历史用于标签生成
|
||||
|
||||
-
|
||||
# Add support for more platforms with QEMU (optional)
|
||||
# https://github.com/docker/setup-qemu-action
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -62,7 +72,7 @@ jobs:
|
||||
# 构建和推送后端镜像
|
||||
- name: Build and push backend image
|
||||
if: matrix.service == 'backend'
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./backend
|
||||
file: ./backend/dockerfile
|
||||
@@ -73,7 +83,7 @@ jobs:
|
||||
# 构建和推送前端镜像
|
||||
- name: Build and push frontend image
|
||||
if: matrix.service == 'frontend'
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./front
|
||||
file: ./front/dockerfile
|
||||
|
||||
Reference in New Issue
Block a user