init
This commit is contained in:
parent
e892b891fb
commit
420879a597
@ -22,12 +22,12 @@ spec:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: extract
|
- name: extract
|
||||||
image: alpine:3.21.3
|
image: python:3.11-slim
|
||||||
workingDir: /workspace/shared/$(params.subdirectory)
|
workingDir: /workspace/shared/$(params.subdirectory)
|
||||||
script: |
|
script: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
apk add --no-cache coreutils
|
apt-get update && apt-get install -y coreutils >/dev/null
|
||||||
|
|
||||||
IFS=',' read -r -a KEY_ARR <<< "$(params.keys)"
|
IFS=',' read -r -a KEY_ARR <<< "$(params.keys)"
|
||||||
for key in "${KEY_ARR[@]}"; do
|
for key in "${KEY_ARR[@]}"; do
|
||||||
@ -37,4 +37,4 @@ spec:
|
|||||||
target="/workspace/shared/$(params.subdirectory)/___HOME___/$key_decoded"
|
target="/workspace/shared/$(params.subdirectory)/___HOME___/$key_decoded"
|
||||||
mkdir -p "$(dirname "$target")"
|
mkdir -p "$(dirname "$target")"
|
||||||
cp "/workspace/credentials/$key" "$target"
|
cp "/workspace/credentials/$key" "$target"
|
||||||
done
|
done
|
Loading…
x
Reference in New Issue
Block a user