-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
44 lines (38 loc) · 1021 Bytes
/
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
---
version: "3"
vars:
PROJECT_DIR:
sh: "git rev-parse --show-toplevel"
KUBERNETES_DIR: "{{.PROJECT_DIR}}/cluster"
ANSIBLE_DIR: "{{.PROJECT_DIR}}/ansible"
TERRAFORM_DIR: "{{.PROJECT_DIR}}/terraform"
env:
KUBECONFIG: "{{.PROJECT_DIR}}/cluster/kubeconfig"
includes:
ansible: .taskfiles/AnsibleTasks.yml
terraform: .taskfiles/TerraformTasks.yml
cluster: .taskfiles/ClusterTasks.yml
sops: .taskfiles/SopsTasks.yml
precommit: .taskfiles/PrecommitTasks.yml
commitlint: .taskfiles/CommitlintTasks.yml
tasks:
default: task -l
init:
desc: Initialize workstation dependencies with Brew
cmds:
- brew install {{.DEPS}} {{.CLI_ARGS}}
preconditions:
- sh: command -v brew
msg: |
Homebrew is not installed. Using MacOS, Linux or WSL?
Head over to https://brew.sh to get up and running.
vars:
DEPS: >-
age
direnv
go-task/tap/go-task
sops
terraform
pre-commit
commitlint
node