fix: use requires in taskfiles when needed (#1201)

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl authored and GitHub committed 2024-01-19 07:49:38 -05:00
1 parent a7c9827c46
commit 5a90397ed5
4 files changed
+10 -9

No files matched your search

+2
View File
@@ -27,6 +27,8 @@ tasks:
.encrypt-file:
internal: true
cmd: sops --encrypt --in-place {{.file}}
requires:
vars: ["file"]
preconditions:
- { msg: "Missing Sops config file", sh: "test -f {{.SOPS_CONFIG_FILE}}" }
- { msg: "Missing Sops Age key file", sh: "test -f {{.SOPS_AGE_FILE}}" }