Files
homelab/Taskfile.yaml
Khue Doan f762325ec7 refactor!: replace make with task
- Better UX
- Make has the advantage of being everywhere, but since we require Nix
  anyway, tasks are already in development tools, so it's not a problem.
2025-01-22 00:06:44 +07:00

51 lines
1008 B
YAML

version: '3'
vars:
CLUSTER: '{{.CLUSTER| default "dev"}}'
env:
KUBECONFIG: '{{.ROOT_DIR}}/metal/kubeconfig-{{.CLUSTER}}.yaml'
includes:
metal:
taskfile: ./metal/Taskfile.yaml
dir: ./metal
system:
taskfile: ./system/Taskfile.yaml
dir: ./system
external:
taskfile: ./external/Taskfile.yaml
dir: ./external
test:
taskfile: ./test/Taskfile.yaml
dir: ./test
tasks:
default:
silent: true
desc: List all tasks
cmds:
- task --list-all
dev:
desc: Apply dev cluster
cmds:
- task: metal:k3d
- task: system
- task: test:smoke
production:
desc: Apply production cluster
cmds:
- task: metal
- task: system
- task: test:smoke
configure:
- ./scripts/configure
- git status
docs:
desc: Preview documentation
cmds:
- mkdocs serve
info:
desc: Display cluster information
silent: true
cmds:
- echo "Running on {{.CLUSTER}} cluster"
- kubectl cluster-info