tasks.py: switch to glob for update-sops-files
supported for updatekeys since 3.9.0
This commit is contained in:
parent
6b273a3ec0
commit
1f272cc6de
1 changed files with 2 additions and 9 deletions
11
tasks.py
11
tasks.py
|
@ -63,16 +63,9 @@ def update_agenix_files(c: Any) -> None:
|
|||
@task
|
||||
def update_sops_files(c: Any) -> None:
|
||||
"""
|
||||
Update all sops yaml and json files according to .sops.yaml rules
|
||||
Update all sops yaml files according to .sops.yaml rules
|
||||
"""
|
||||
c.run(
|
||||
"""
|
||||
find . \
|
||||
-type f \
|
||||
\( -iname '*.enc.json' -o -iname 'secrets.yaml' \) \
|
||||
-exec sops updatekeys --yes {} \;
|
||||
"""
|
||||
)
|
||||
c.run("shopt -s globstar && sops updatekeys --yes **/secrets.yaml")
|
||||
|
||||
|
||||
@task
|
||||
|
|
Loading…
Add table
Reference in a new issue