feat: add python version check (#1176)
* feat: add python version check Signed-off-by: Devin Buhl <devin@buhl.casa> * chore: formatting Signed-off-by: Devin Buhl <devin@buhl.casa> * test python 3.10 * chore: taskfile formating Signed-off-by: Devin Buhl <devin@buhl.casa> * chore: python 3.11 is minimum Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
35177471b5
commit
edbcf28139
10 files changed
+117
-147
No files matched your search
@@ -2,6 +2,9 @@
|
||||
# yaml-language-server: $schema=https://taskfile.dev/schema.json
|
||||
version: "3"
|
||||
|
||||
vars:
|
||||
SOPS_CONFIG_FILE: "{{.ROOT_DIR}}/.sops.yaml"
|
||||
|
||||
tasks:
|
||||
|
||||
age-keygen:
|
||||
@@ -11,24 +14,23 @@ tasks:
|
||||
- test -f "{{.SOPS_AGE_FILE}}"
|
||||
|
||||
encrypt:
|
||||
desc: Encrypt a secret
|
||||
summary: |
|
||||
Args:
|
||||
file: Path to file to encrypt (required)
|
||||
cmd: sops --encrypt --in-place {{.file}}
|
||||
vars:
|
||||
claim: '{{ or .file (fail "Argument (file) is required") }}'
|
||||
preconditions:
|
||||
- sh: test -f {{.SOPS_CONFIG_FILE}}
|
||||
- sh: test -f {{.SOPS_AGE_FILE}}
|
||||
|
||||
encrypt:all:
|
||||
desc: Encrypt all Kubernetes SOPS secrets
|
||||
cmds:
|
||||
- for: { var: file }
|
||||
task: encrypt
|
||||
task: .encrypt-file
|
||||
vars:
|
||||
file: "{{.ITEM}}"
|
||||
vars:
|
||||
file:
|
||||
sh: find {{.KUBERNETES_DIR}} -type f -name "*.sops.*"
|
||||
|
||||
.encrypt-file:
|
||||
internal: true
|
||||
cmd: sops --encrypt --in-place {{.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}}" }
|
||||
|
||||
.reset:
|
||||
internal: true
|
||||
cmd: rm -rf {{.SOPS_CONFIG_FILE}}
|
||||
Reference in new issue
Block a user