-
Notifications
You must be signed in to change notification settings - Fork 14
/
Taskfile.yml
48 lines (43 loc) · 1.43 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
---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
vars:
ANSIBLE_DIR: "{{.ROOT_DIR}}/infrastructure/ansible"
TALOS_DIR: "{{.ROOT_DIR}}/kubernetes/talos/bootstrap/talos"
TERRAFORM_DIR: "{{.ROOT_DIR}}/infrastructure/terraform"
dotenv: [".config.env"]
# env:
# # KUBECONFIG: "$HOME/.kube/kubeconfig"
includes:
ansible:
dir: .taskfiles/ansible
taskfile: .taskfiles/ansible
flux:
dir: .taskfiles/flux
taskfile: .taskfiles/flux
format:
dir: .taskfiles/format
taskfile: .taskfiles/format
kubernetes:
dir: .taskfiles/kubernetes
taskfile: .taskfiles/kubernetes
precommit:
dir: .taskfiles/precommit
taskfile: .taskfiles/precommit
talos:
dir: .taskfiles/talos
taskfile: .taskfiles/talos
tasks:
default:
silent: true
cmds: ["task -l"]
deps:
desc: Initialize workstation dependencies with Brew
cmds:
- brew bundle {{.CLI_ARGS}}
- curl -Lo /tmp/talhelper-{{.TALHELPER_VERSION}}.tar.gz https://github.com/budimanjojo/talhelper/releases/download/{{.TALHELPER_VERSION}}/talhelper_$(uname -s | tr "[:upper:]" "[:lower:]")_$(uname -m).tar.gz && tar -xzf /tmp/talhelper-{{.TALHELPER_VERSION}}.tar.gz -C /tmp && sudo mv /tmp/talhelper /usr/local/bin/talhelper
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.