khuedoan-homelab/external/Makefile
Khue Doan dc7d1256a0 build: set kubeconfig from global Makefile
Separate build steps in Tekton can use service account instead of config file
2022-05-14 20:06:57 +07:00

23 lines
418 B
Makefile

.POSIX:
default: apply
~/.terraform.d/credentials.tfrc.json:
terraform login
terraform.tfvars:
ansible-playbook tfvars.yml
.terraform.lock.hcl: ~/.terraform.d/credentials.tfrc.json versions.tf terraform.tfvars
terraform init
touch .terraform.lock.hcl
namespaces:
ansible-playbook namespaces.yml
plan: .terraform.lock.hcl
terraform plan
apply: .terraform.lock.hcl namespaces
terraform apply -auto-approve