-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yaml
61 lines (55 loc) · 1.57 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
---
version: '3'
vars:
PROJECT_DIR: '{{.ROOT_DIR}}'
KUBERNETES_DIR: "{{.ROOT_DIR}}/kubernetes"
ANSIBLE_DIR: "{{.ROOT_DIR}}/ansible"
TERRAFORM_DIR: "{{.ROOT_DIR}}/terraform"
dotenv: [".config.env"]
env:
KUBECONFIG: "{{.ROOT_DIR}}/kubeconfig"
includes:
ro: .taskfiles/Rook/Tasks.yaml
ansible: .taskfiles/Ansible/Tasks.yaml
k8s: .taskfiles/Kubernetes/Tasks.yaml
terraform: .taskfiles/Terraform/Tasks.yaml
precommit: .taskfiles/Pre-Commit/Tasks.yaml
volsync: .taskfiles/Volsync/Tasks.yaml
tasks:
init:
desc: Initialize workstation dependencies with Brew
cmds:
- brew install {{.DEPS}} {{.CLI_ARGS}}
- task: install-gcloud
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: >-
ansible
direnv
go-task/tap/go-task
helm
ipcalc
jq
kubernetes-cli
kustomize
kyverno
pre-commit
prettier
stern
terraform
tflint
yamllint
yq
install-gcloud:
desc: Install gcloud CLI (On Ubuntu)
cmds:
- sudo apt-get install apt-transport-https ca-certificates gnupg
- echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
- curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
- sudo apt-get update && sudo apt-get install google-cloud-cli
status:
- test $(gcloud)