@@ -73,8 +73,6 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
apt update && apt install -y gettext-base
|
||||
|
||||
# Экспортируем все секреты как env-переменные
|
||||
while IFS= read -r -d '' entry; do
|
||||
key="${entry%%=*}"
|
||||
@@ -103,7 +101,7 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
envsubst < "$src" > "$dst"
|
||||
perl -pe 's/\$\{(\w+)\}/exists $ENV{$1} ? $ENV{$1} : ""/ge' "$src" > "$dst"
|
||||
}
|
||||
|
||||
render config.template.yaml config.rendered.yaml
|
||||
|
||||
Reference in New Issue
Block a user