init
This commit is contained in:
parent
ee4d848422
commit
a4bf5e9859
@ -24,13 +24,13 @@ spec:
|
|||||||
image: alpine:3.21.3
|
image: alpine:3.21.3
|
||||||
workingDir: /workspace/shared/$(params.subdirectory)
|
workingDir: /workspace/shared/$(params.subdirectory)
|
||||||
script: |
|
script: |
|
||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
apk add --no-cache coreutils
|
apk add --no-cache coreutils
|
||||||
|
|
||||||
for key in $(params.keys); do
|
for key in $(params.keys[*]); do
|
||||||
echo "encoding $key"
|
echo "encoding $key"
|
||||||
key_decoded=$(echo "$key" | sed 's/__/\//g')
|
key_decoded="${key//__//}"
|
||||||
echo "decoding $key_decoded"
|
echo "decoding $key_decoded"
|
||||||
target="/workspace/shared/$(params.subdirectory)/___HOME___/$key_decoded"
|
target="/workspace/shared/$(params.subdirectory)/___HOME___/$key_decoded"
|
||||||
mkdir -p "$(dirname "$target")"
|
mkdir -p "$(dirname "$target")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user