mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-11-22 05:22:45 +00:00
Add SOPS encryption for env files
(and decryption with SwarmCD)
This commit is contained in:
1 parent
ef3c53bdc0
commit
6ded6f7d28
13 files changed
+107
-5
No files matched your search
@@ -3,7 +3,7 @@ readarray f < <(git diff-tree --no-commit-id --name-only HEAD -r)
|
||||
for filepath in "${f[@]}"; do
|
||||
filepath=$(echo "${filepath}" | tr -d '\n')
|
||||
filename=$(basename ${filepath})
|
||||
if [[ "${filename}" =~ values.ya?ml$ ]] || [[ "${filename}" =~ secrets?.ya?ml$ ]]; then
|
||||
if [[ "${filename}" =~ values.ya?ml$ ]] || [[ "${filename}" =~ secrets?.ya?ml$ ]] || [[ "${filename}" = ".env" ]]; then
|
||||
sops -d -i "${filepath}"
|
||||
fi
|
||||
done
|
||||
Reference in new issue
Block a user