This commit is contained in:
+2
-16
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user