generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
68 lines (59 loc) · 1.46 KB
/
Taskfile.yml
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
63
64
65
66
67
68
---
version: "3"
vars:
KUBERNETES_DIR: "{{.ROOT_DIR}}/kubernetes"
TERRAFORM_DIR: "{{.ROOT_DIR}}/terraform"
dotenv: [".config.env"]
env:
KUBECONFIG: "{{.ROOT_DIR}}/kubeconfig"
SOPS_AGE_KEY_FILE: ~/.config/sops/age/keys.txt
includes:
cluster: .taskfiles/ClusterTasks.yml
precommit: .taskfiles/PrecommitTasks.yml
terraform: .taskfiles/TerraformTasks.yml
vs: .taskfiles/VolSync/Tasks.yml
repo: .taskfiles/RepoTasks.yml
tasks:
init:
desc: Initialize workstation dependencies with Pacman, Pacaur, and Brew
cmds:
- sudo pacman -Syu {{.CLI_ARGS}}
- sudo pacman -S {{.PACMAN_DEPS}} {{.CLI_ARGS}}
- yay -S {{.PACAUR_DEPS}} {{.CLI_ARGS}}
vars:
PACMAN_DEPS: >-
age
direnv
helm
ipcalc
jq
kubectl
kustomize
python-pre-commit
prettier
sops
stern
terraform
yamllint
yq
PACAUR_DEPS: >-
go-task
tflint
flux-bin
weave-gitops-bin
age:
desc: Setup keys
cmds:
- age-keygen -o age.agekey
- mkdir -p ~/.config/sops/age
- mv age.agekey ~/.config/sops/age/keys.txt
- export SOPS_AGE_KEY_FILE=~/.config/sops/age/keys.txt
- echo 'export SOPS_AGE_KEY_FILE=~/.config/sops/age/keys.txt' > $HOME/.bashrc
verify:
desc: Verify env settings
cmds:
- ./configure --verify
configure:
desc: Configure repository from env settings
cmds:
- ./configure