fix: bad xargs -0
Some checks failed
/ deploy (push) Failing after 5m14s

This commit is contained in:
ange 2024-12-22 05:27:39 +00:00
parent 56e937a224
commit a0e8849beb
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -4,7 +4,7 @@ set -o pipefail
function kapply() {
for f in "$@"; do
kubectl apply -f \
<(envsubst "$(env | xargs -0 printf '$%s ')" < "manifests/$f")
<(envsubst "$(env | xargs printf '$%s ')" < "manifests/$f")
done
}; export -f kapply
@ -55,7 +55,7 @@ kcreatesec gitea \
kubectl delete pod secrets
kcreatecm gitea \
--from-file=app.ini=<(envsubst "$(env | xargs -0 printf '$%s ')" < config/app.ini)
--from-file=app.ini=<(envsubst "$(env | xargs printf '$%s ')" < config/app.ini)
kapply common/job.yaml \
common/valkey.yaml \