fix grafana secret sops rule matching
Homelab Main / validate (push) Successful in 15s Details
Homelab Main / running-update (push) Successful in 7s Details
Homelab Main / debian-ops (push) Successful in 1m13s Details

This commit is contained in:
juvenal.diaz 2026-09-28 16:01:02 -06:00
parent 7f500b5e18
commit 9f08134f3f
1 changed files with 6 additions and 1 deletions

View File

@ -247,7 +247,12 @@ ensure_grafana_admin_secret_file() {
printf ' admin-password: "%s"\n' "${password}"
} >"${tmp_file}"
SOPS_AGE_KEY_FILE="$(sops_age_key_file)" sops --encrypt --input-type yaml --output-type yaml "${tmp_file}" >"${secret_file}"
SOPS_AGE_KEY_FILE="$(sops_age_key_file)" sops \
--encrypt \
--input-type yaml \
--output-type yaml \
--filename-override "${secret_file}" \
"${tmp_file}" >"${secret_file}"
rm -f "${tmp_file}"
chmod 600 "${secret_file}"