This commit is contained in:
gxl 2026-06-03 15:41:35 +08:00
parent 22b54e2c1e
commit 2900af9790
1 changed files with 17 additions and 6 deletions

View File

@ -34,12 +34,23 @@ steps:
# 💡 文档高级配置:通知内部 dockerd 引擎全面放开对不安全 HTTP 仓库的拦截
insecure: true
# 💡 官方文档标准语法:改用新版 logins 数组来显式声明私服的登录凭证
logins:
- registry: "http://push.lovestory.cyou" # 👈 显式加上 http://,强制按纯 HTTP 协议走
username:
from_secret: nexus_docker_username
password:
from_secret: nexus_docker_password
# logins:
# - registry: "http://push.lovestory.cyou" # 👈 显式加上 http://,强制按纯 HTTP 协议走
# username:
# from_secret: nexus_docker_username
# password:
# from_secret: nexus_docker_password
# registry: "http://push.lovestory.cyou" # 👈 显式加上 http://,强制按纯 HTTP 协议走
# username:
# from_secret: nexus_docker_username
# password:
# from_secret: nexus_docker_password
# repo: ${APP_REGISTRY}/${PROJECT_NAME}
registry: ${APP_REGISTRY}
username:
from_secret: nexus_docker_username
password:
from_secret: nexus_docker_password
when:
event: push
branch: master