mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2025-12-19 04:26:04 +00:00
Initial commit
This commit is contained in:
7
.pre-commit-sops.sh
Executable file
7
.pre-commit-sops.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
for filename in "$@"; do
|
||||
if [[ "${filename}" =~ values.ya?ml$ ]] || [[ "${filename}" =~ secrets?.ya?ml$ ]]; then
|
||||
sops -e -i "${filename}"
|
||||
git add "${filename}"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user