This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
62 lines (55 loc) · 1.47 KB
/
Taskfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
version: "3"
vars:
KUBERNETES_DIR: "{{.ROOT_DIR}}/kubernetes"
ANSIBLE_DIR: "{{.ROOT_DIR}}/ansible"
SCRIPTS_DIR: "{{.ROOT_DIR}}/scripts"
AGE_DIR: ~/.config/sops/age
AGE_FILE: "{{.AGE_DIR}}/keys.txt"
KUBECONFIG_FILE: "{{.ROOT_DIR}}/kubeconfig"
SOPS_CONFIG_FILE: "{{.ROOT_DIR}}/.sops.yaml"
PIP_REQUIREMENTS_FILE: "{{.ROOT_DIR}}/requirements.txt"
PYTHON_BIN: python3
env:
ROOT_DIR: "{{.ROOT_DIR}}"
KUBECONFIG: "{{.KUBECONFIG_FILE}}"
PYTHONDONTWRITEBYTECODE: "1"
SOPS_AGE_KEY_FILE: "{{.AGE_FILE}}"
VIRTUAL_ENV: "{{.ROOT_DIR}}/.venv"
includes:
ansible:
taskfile: .taskfiles/ansible.yaml
aliases: [a]
flux:
taskfile: .taskfiles/flux.yaml
aliases: [f]
kubernetes:
taskfile: .taskfiles/kubernetes.yaml
aliases: [k]
lint: .taskfiles/lint.yaml
precommit: .taskfiles/precommit.yaml
setup: .taskfiles/setup_{{OS}}.yaml
sops: .taskfiles/sops.yaml
tasks:
default:
silent: true
cmds:
- task -l
init:
desc: Install dependencies and setup environment
cmds:
- task: setup:init
- task: precommit:init
- task: precommit:update
- task: sops:setup
- task: direnv
wip:
desc: Commit WIP to current branch and reconcile cluster
cmds:
- "{{.SCRIPTS_DIR}}/wip.sh"
direnv:
desc: Run direnv hooks
cmd: direnv allow .
status:
- "[[ $(direnv status --json | jq '.state.foundRC.allowed') == 0 ]]"
- "[[ $(direnv status --json | jq '.state.loadedRC.allowed') == 0 ]]"