ci(docker): 简化 Docker 构建工作流

- 改用 `docker` 作为 Buildx driver,移除自定义 BuildKit 镜像配置。
- 删除构建缓存的 `cache-from` 和 `cache-to` 配置,精简镜像构建步骤。
This commit is contained in:
LanQin
2026-06-16 23:39:55 +08:00
parent 095607e35b
commit 27ab80adb9
+1 -8
View File
@@ -106,8 +106,7 @@ jobs:
- name: Setup Docker Buildx - name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with: with:
driver-opts: | driver: docker
image=ghcr.io/moby/buildkit:buildx-stable-1
- name: Login to GHCR - name: Login to GHCR
uses: docker/login-action@v3 uses: docker/login-action@v3
@@ -145,9 +144,3 @@ jobs:
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: |
type=gha,scope=lanqin-${{ matrix.name }}
type=registry,ref=${{ steps.image.outputs.name }}:buildcache
cache-to: |
type=gha,mode=max,scope=lanqin-${{ matrix.name }},ignore-error=true
type=registry,ref=${{ steps.image.outputs.name }}:buildcache,mode=max