This commit is contained in:
gxl 2026-06-03 19:31:40 +08:00
parent d7e7ef0185
commit 19c710d550
1 changed files with 1 additions and 16 deletions

View File

@ -25,12 +25,8 @@ steps:
- name: 官方标准构建与推送 (宿主机物理硬缓存版)
image: woodpeckerci/plugin-docker-buildx:latest-insecure
privileged: true
# 💡 核心外挂 1把宿主机的 docker.sock 和 buildx 缓存目录直接挂载进来!
# 这样插件在执行命令时直接吃的是你服务器本地已经下载好的镜像绝不联网0秒结束
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
- /root/.docker:/root/.docker
settings:
repo: push.lovestory.cyou/abhors/demo
registry: push.lovestory.cyou
@ -39,18 +35,7 @@ steps:
from_secret: nexus_docker_username
password:
from_secret: nexus_docker_password
output: type=image,push=true
# 内部编译器只认你的内网私服,彻底断绝外网
buildkit_config: |
[registry."docker.io"]
mirrors = ["registry.lovestory.cyou"]
[registry."push.lovestory.cyou"]
http = true
insecure = true
[registry."registry.lovestory.cyou"]
http = true
insecure = true
mirror: http://registry.lovestory.cyou
when:
event: push
branch: master