This commit is contained in:
gxl 2026-06-03 09:22:31 +08:00
parent a41c25e5a7
commit a184e74b07
1 changed files with 2 additions and 2 deletions

View File

@ -36,12 +36,12 @@ steps:
image: docker.m.daocloud.io/library/docker:cli
environment:
# 1. 从 Secret 动态读取你的阿里云 ACR 凭证
- ALIYUN_REGISTRY=registry.cn-zhangjiakou.aliyuncs.com
- ALIYUN_REGISTRY: registry.cn-zhangjiakou.aliyuncs.com
- ALIYUN_USER:
from_secret: aliyun_acr_username
- ALIYUN_PASS:
from_secret: aliyun_acr_password
- DOCKER_HOST=tcp://136_ssh_host:2375
- DOCKER_HOST: tcp://136_ssh_host:2375
commands:
# 👉 核心操作 1命令远程服务器登录阿里云彻底解决之前 pull access denied 报错
- echo "$ALIYUN_PASS" | docker login --username "$ALIYUN_USER" --password-stdin $ALIYUN_REGISTRY