mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/khuedoan/homelab.git
synced 2026-09-20 08:03:58 +08:00
- 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.
51 lines
1008 B
YAML
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
|