ansible/new-app

14 lines
305 B
Text
Raw Permalink Normal View History

2024-10-11 17:41:32 +02:00
#!/bin/bash
2024-10-12 13:33:33 +02:00
set -euxo pipefail
2024-10-11 17:41:32 +02:00
echo "creating directories for '$1'"
mkdir -p "playbooks/apps/files/$1"
mkdir -p "playbooks/apps/templates/$1"
cp playbooks/apps/template.yaml.dist "playbooks/apps/$1.yaml"
sed -i '' "s/==APP==/$1/g" "playbooks/apps/$1.yaml"
2024-10-12 13:33:33 +02:00
git add .
pre-commit run
git add .
2024-10-11 17:41:32 +02:00
echo "done"