This commit is contained in:
gxl 2026-06-03 18:35:36 +08:00
parent e5e36f31e7
commit 1d76bf1df1
1 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# 第 68 次部署 # 第 70 次部署
# 💡 全局变量块 # 💡 全局变量块
variables: variables:
- &APP_REGISTRY "push.lovestory.cyou" - &APP_REGISTRY "push.lovestory.cyou"
@ -26,9 +26,6 @@ steps:
# 👇 1. 核心:必须换成官方文档指定的 -insecure 后缀镜像 # 👇 1. 核心:必须换成官方文档指定的 -insecure 后缀镜像
image: woodpeckerci/plugin-docker-buildx:latest-insecure image: woodpeckerci/plugin-docker-buildx:latest-insecure
privileged: true privileged: true
# volumes:
# 👇 官方推荐挂载 1让容器内层 dockerd 能够读取到宿主机配好的不安全仓库HTTP和加速器凭证
# - /etc/docker:/etc/docker:ro
settings: settings:
repo: push.lovestory.cyou/abhors/demo repo: push.lovestory.cyou/abhors/demo
insecure: true # 这个是给内部 dockerd 用的 insecure: true # 这个是给内部 dockerd 用的
@ -37,12 +34,15 @@ steps:
from_secret: nexus_docker_username from_secret: nexus_docker_username
password: password:
from_secret: nexus_docker_password from_secret: nexus_docker_password
# 👇 2. 核心:完全对齐官方不安全设置文档,强制 BuildKit 放行纯 HTTP # 👇 2. 核心:完全对齐官方不安全设置文档,强制 BuildKit 放行纯 HTTP
# buildkit_config: | buildkit_config: |
# [registry."push.lovestory.cyou"] [registry."push.lovestory.cyou"]
# http = true http = true
# insecure = true insecure = true
config: |
{
"insecure-registries": ["push.lovestory.cyou"]
}
when: when:
event: push event: push
branch: master branch: master