ci(docker): 简化 Docker 构建工作流
- 改用 `docker` 作为 Buildx driver,移除自定义 BuildKit 镜像配置。 - 删除构建缓存的 `cache-from` 和 `cache-to` 配置,精简镜像构建步骤。
This commit is contained in:
@@ -106,8 +106,7 @@ jobs:
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver-opts: |
|
||||
image=ghcr.io/moby/buildkit:buildx-stable-1
|
||||
driver: docker
|
||||
|
||||
- name: Login to GHCR
|
||||
uses: docker/login-action@v3
|
||||
@@ -145,9 +144,3 @@ jobs:
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user