This commit is contained in:
병준 박 2025-04-15 09:21:56 +00:00
parent e892b891fb
commit 420879a597

View File

@ -22,12 +22,12 @@ spec:
steps:
- name: extract
image: alpine:3.21.3
image: python:3.11-slim
workingDir: /workspace/shared/$(params.subdirectory)
script: |
#!/usr/bin/env bash
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)"
for key in "${KEY_ARR[@]}"; do
@ -37,4 +37,4 @@ spec:
target="/workspace/shared/$(params.subdirectory)/___HOME___/$key_decoded"
mkdir -p "$(dirname "$target")"
cp "/workspace/credentials/$key" "$target"
done
done