-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathTaskfile.yml
47 lines (42 loc) · 1.42 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
---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
set: [pipefail]
shopt: [globstar]
vars:
CLUSTER_DIR: "{{.ROOT_DIR}}/kubernetes"
BOOTSTRAP_DIR: "{{.CLUSTER_DIR}}/bootstrap"
TALOS_DIR: "{{.BOOTSTRAP_DIR}}/talos"
ANSIBLE_DIR: "{{.ROOT_DIR}}/infrastructure/ansible"
TERRAFORM_DIR: "{{.ROOT_DIR}}/infrastructure/terraform"
env:
KUBERNETES_DIR: '{{.CLUSTER_DIR}}'
dotenv: [".config.env"]
includes:
ansible:
dir: .taskfiles/ansible
taskfile: .taskfiles/ansible
bootstrap: .taskfiles/bootstrap
flux:
dir: .taskfiles/flux
taskfile: .taskfiles/flux
format: .taskfiles/format
kubernetes: .taskfiles/kubernetes
precommit: .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.