* 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>
37 lines
872 B
YAML
37 lines
872 B
YAML
---
|
|
# yaml-language-server: $schema=https://taskfile.dev/schema.json
|
|
version: "3"
|
|
|
|
vars:
|
|
SOPS_CONFIG_FILE: "{{.ROOT_DIR}}/.sops.yaml"
|
|
|
|
tasks:
|
|
|
|
age-keygen:
|
|
desc: Initialize Age Key for Sops
|
|
cmd: age-keygen --output {{.SOPS_AGE_FILE}}
|
|
status:
|
|
- test -f "{{.SOPS_AGE_FILE}}"
|
|
|
|
encrypt:
|
|
desc: Encrypt all Kubernetes SOPS secrets
|
|
cmds:
|
|
- for: { var: file }
|
|
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}}
|