1
0
forked from k-space/kube
kube/argocd/update.sh
2022-08-25 11:22:50 +03:00

10 lines
315 B
Bash
Executable File

#!/bin/bash
path=$(dirname $(dirname $(realpath $0)))
for j in $path/*/application.yml; do
app=$(dirname $j)
test -f "$app/values.yml" && continue
test -f "$app/values.yaml" && continue
appname=$(basename $app)
cat application.tpl | sed -e "s/foobar/$appname/g" > applications/$appname.yml
done