This commit is contained in:
parent
e5e36f31e7
commit
1d76bf1df1
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue