This commit is contained in:
+6
-9
@@ -31,17 +31,14 @@ steps:
|
||||
path: /run/podman/podman.sock
|
||||
- name: containers-config
|
||||
path: /etc/containers
|
||||
secrets:
|
||||
- source: swr_username
|
||||
target: swr_username
|
||||
- source: swr_password
|
||||
target: swr_password
|
||||
environment:
|
||||
REGISTRY_SERVER: "swr.cn-north-4.myhuaweicloud.com"
|
||||
REGISTRY_USER:
|
||||
from_secret: swr_username
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: swr_password
|
||||
commands:
|
||||
- |
|
||||
REGISTRY_USER=$(cat /run/secrets/swr_username)
|
||||
REGISTRY_PASSWORD=$(cat /run/secrets/swr_password)
|
||||
REGISTRY_SERVER="swr.cn-north-4.myhuaweicloud.com"
|
||||
|
||||
echo "Logging into registry..."
|
||||
# 调试:打印所有关键变量
|
||||
echo "=== Debug Variables ==="
|
||||
|
||||
Reference in New Issue
Block a user