-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yaml
32 lines (28 loc) · 890 Bytes
/
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
version: "3"
dotenv: ["workstation.env"]
env:
GIT_EMAIL: [email protected]
GIT_REPO_NAME: k8s-gitops
GIT_URL: ssh://[email protected]/cjshearer/{{.GIT_REPO_NAME}}.git
KUBERNETES_DIR: "{{.ROOT_DIR}}/kubernetes"
KUBECONFIG: "{{.KUBERNETES_DIR}}/kubeconfig"
FLUX_DIR: "{{.KUBERNETES_DIR}}/flux-system"
SOPS_AGE_KEY_FILE: "{{.ROOT_DIR}}/age.key"
TALOS_DIR: "{{.ROOT_DIR}}/talos"
TALOS_CLUSTER_CONFIG: "{{.TALOS_DIR}}/clusterconfig"
TALOSCONFIG: "{{.TALOS_CLUSTER_CONFIG}}/talosconfig"
tasks:
default: task -l
env:
desc: Load env vars with `source <(task env)`
silent: true
cmd: |
echo "
export KUBECONFIG={{.KUBECONFIG}}
export SOPS_AGE_KEY_FILE={{.SOPS_AGE_KEY_FILE}}
export TALOSCONFIG={{.TALOSCONFIG}}
"
includes:
flux: ./.taskfiles/Flux.yaml
talos: ./.taskfiles/Talos.yaml
workstation: ./.taskfiles/Workstation.yaml