Add SOPS encryption for env files

(and decryption with SwarmCD)
This commit is contained in:
2025-09-16 21:22:00 +02:00
parent ef3c53bdc0
commit 6ded6f7d28
13 changed files with 107 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
for filename in "$@"; do
if [[ "${filename}" =~ values.ya?ml$ ]] || [[ "${filename}" =~ secrets?.ya?ml$ ]]; then
if [[ "${filename}" =~ values.ya?ml$ ]] || [[ "${filename}" =~ secrets?.ya?ml$ ]] || [[ "${filename}" =~ .env$ ]]; then
sops -e -i "${filename}"
git add "${filename}"
fi