init
This commit is contained in:
parent
a4bf5e9859
commit
9a7e1825f2
@ -10,8 +10,8 @@ spec:
|
|||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
- name: keys
|
- name: keys
|
||||||
type: array
|
type: string
|
||||||
description: Name of the key(s) to extract from the secret
|
description: Comma-separated keys (e.g. ".gitconfig,.git-credentials")
|
||||||
|
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: shared
|
- name: shared
|
||||||
@ -28,7 +28,8 @@ spec:
|
|||||||
set -e
|
set -e
|
||||||
apk add --no-cache coreutils
|
apk add --no-cache coreutils
|
||||||
|
|
||||||
for key in $(params.keys[*]); do
|
IFS=',' read -r -a KEY_ARR <<< "$(params.keys)"
|
||||||
|
for key in "${KEY_ARR[@]}"; do
|
||||||
echo "encoding $key"
|
echo "encoding $key"
|
||||||
key_decoded="${key//__//}"
|
key_decoded="${key//__//}"
|
||||||
echo "decoding $key_decoded"
|
echo "decoding $key_decoded"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user