fix: 使用顶层 secret 方式导入配置项,规避 podman 环境变量引入问题
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-12-26 17:20:25 +08:00
parent e3466067c0
commit 35e8b60e14
+2 -16
View File
@@ -34,9 +34,9 @@ steps:
environment:
REGISTRY_SERVER: "swr.cn-north-4.myhuaweicloud.com"
REGISTRY_USER:
from_secret: swr_username
from_secret: secrets/data/swr_username
REGISTRY_PASSWORD:
from_secret: swr_password
from_secret: secrets/swr_password
commands:
- |
echo "Logging into registry..."
@@ -115,17 +115,3 @@ steps:
podman system prune -af || true
when:
status: [success, failure] # 成功/失败都执行清理
---
kind: secret
name: swr_username
get:
path: secrets/data/docker
name: swr_username
---
kind: secret
name: swr_password
get:
path: secrets/data/docker
name: swr_password