fix: use requires in taskfiles when needed (#1201)
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
a7c9827c46
commit
5a90397ed5
4 files changed
+10
-9
No files matched your search
@@ -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}}" }
|
||||
|
||||
Reference in new issue
Block a user