mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:24:36 +07:00
Improve makefile targets consistency
This commit is contained in:
parent
00a8d044c0
commit
6e39a3db19
15
Makefile
15
Makefile
@ -1,11 +1,17 @@
|
||||
.POSIX:
|
||||
|
||||
default: run
|
||||
default: apply
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
.PHONY: metal
|
||||
metal:
|
||||
make -C metal
|
||||
|
||||
.PHONY: infra
|
||||
infra:
|
||||
make -C infra
|
||||
|
||||
.PHONY: apps
|
||||
apps:
|
||||
make -C apps
|
||||
|
||||
.PHONY: tools
|
||||
@ -15,3 +21,6 @@ tools:
|
||||
.PHONY: docs
|
||||
docs:
|
||||
make -C docs
|
||||
|
||||
.PHONY: apply
|
||||
apply: metal infra apps
|
||||
|
@ -8,5 +8,5 @@ default: apply
|
||||
apply:
|
||||
kubectl apply --kustomize .
|
||||
|
||||
delete:
|
||||
destroy:
|
||||
kubectl delete --kustomize .
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
TF_IN_AUTOMATION = true
|
||||
|
||||
default: init plan apply
|
||||
default: init apply
|
||||
|
||||
init:
|
||||
terraform init -input=false
|
||||
@ -11,7 +11,7 @@ init:
|
||||
plan:
|
||||
terraform plan -input=false -out=/tmp/tfplan
|
||||
|
||||
apply:
|
||||
apply: plan
|
||||
terraform apply -input=false /tmp/tfplan
|
||||
|
||||
destroy:
|
||||
|
Loading…
Reference in New Issue
Block a user