Copying setup from other infra repo

This commit is contained in:
2024-01-04 18:45:01 +01:00
parent 42d3138746
commit 4900bc3c0d
21 changed files with 713 additions and 1 deletions

16
git-hooks/commit-msg Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# TODO: Clean this up so it iterates over the vars files
if grep -qE "vault_decrypted: true" "./vars/bigboi.yaml";then
echo "The vault isn't encrypted, run './encrypt-vault.sh' before committing."
exit 1
fi
if grep -qE "vault_decrypted: true" "./vars/bootstrap.yaml";then
echo "The vault isn't encrypted, run './encrypt-vault.sh' before committing."
exit 1
fi
if grep -qE "vault_decrypted: true" "./vars/smolboi.yaml";then
echo "The vault isn't encrypted, run './encrypt-vault.sh' before committing."
exit 1
fi