fix: [nomad-step-3] S3-fix-4 — KV key-name mismatch: wp_forgejo_client vs forgejo_client (#954)
This commit is contained in:
parent
c20b0a8bd2
commit
612b3e616c
2 changed files with 10 additions and 1 deletions
|
|
@ -391,7 +391,13 @@ EOF
|
|||
local val="${!key}"
|
||||
if [ -n "$val" ]; then
|
||||
local lowercase_key="${key,,}"
|
||||
operations+=("woodpecker|$lowercase_key|$env_file|$key")
|
||||
# Normalize WP_FORGEJO_* → forgejo_* (strip wp_ prefix to match template)
|
||||
if [[ "$lowercase_key" =~ ^wp_(.+)$ ]]; then
|
||||
vault_key="${BASH_REMATCH[1]}"
|
||||
else
|
||||
vault_key="$lowercase_key"
|
||||
fi
|
||||
operations+=("woodpecker|$vault_key|$env_file|$key")
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue