fix: 修复 Docker Buildx 认证传递问题
- 恢复上海地区个人版镜像仓库地址 - 简化 Docker Buildx 配置,移除可能导致问题的 driver-opts - 禁用 provenance 和 sbom 以避免认证传递问题 - 解决构建容器和推送容器认证不一致的问题
This commit is contained in:
@ -10,7 +10,7 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: registry.cn-hangzhou.aliyuncs.com
|
||||
REGISTRY: crpi-b4fqtfbvv583enk2.cn-shanghai.personal.cr.aliyuncs.com
|
||||
IMAGE_NAME: photography-backend/photography
|
||||
|
||||
jobs:
|
||||
@ -27,7 +27,6 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver-opts: |
|
||||
image=moby/buildkit:master
|
||||
network=host
|
||||
|
||||
- name: 🔧 配置 Docker 镜像代理
|
||||
@ -78,6 +77,8 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
provenance: false
|
||||
sbom: false
|
||||
|
||||
- name: 📦 同步配置文件
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user