init
This commit is contained in:
parent
e892b891fb
commit
420879a597
@ -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
|
Loading…
x
Reference in New Issue
Block a user