-
Notifications
You must be signed in to change notification settings - Fork 13
/
Taskfile.yml
38 lines (33 loc) · 1.27 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
---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
vars:
KUBERNETES_DIR: "{{.ROOT_DIR}}/kubernetes"
ANSIBLE_DIR: "{{.ROOT_DIR}}/infrastructure/ansible"
TALOS_DIR: "{{.ROOT_DIR}}/infrastructure/talos"
TERRAFORM_DIR: "{{.ROOT_DIR}}/infrastructure/terraform"
dotenv: [".config.env"]
# env:
# # KUBECONFIG: "$HOME/.kube/kubeconfig"
includes:
kubernetes: .taskfiles/Kubernetes.yml
precommit: .taskfiles/Precommit.yml
ansible: .taskfiles/Ansible.yml
talos: .taskfiles/Talos.yml
format: .taskfiles/Format.yml
lint: .taskfiles/Lint.yml
flux: .taskfiles/Flux.yml
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.