检测buildx问题
This commit is contained in:
@@ -19,7 +19,17 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
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,18 +72,18 @@ 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
|
||||
push: true
|
||||
tags: ${{ steps.meta-backend.outputs.tags }}
|
||||
labels: ${{ steps.meta-backend.outputs.labels }}
|
||||
|
||||
|
||||
# 构建和推送前端镜像
|
||||
- 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