mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
25 lines
405 B
Makefile
25 lines
405 B
Makefile
.POSIX:
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
KUBECONFIG = $(shell pwd)/../metal/kubeconfig.yaml
|
|
|
|
default: namespace argocd root
|
|
|
|
argocd/charts: argocd/Chart.yaml
|
|
cd argocd \
|
|
&& helm dependency update
|
|
|
|
namespace:
|
|
kubectl create namespace argocd --dry-run=client --output=yaml \
|
|
| kubectl apply -f -
|
|
|
|
.PHONY: argocd
|
|
argocd: argocd/charts
|
|
cd argocd && \
|
|
./apply.sh
|
|
|
|
.PHONY: root
|
|
root:
|
|
cd root && \
|
|
./apply.sh
|