Capstone/infra/Makefile

16 lines
494 B
Makefile
Raw Normal View History

2023-11-19 10:37:45 -05:00
FRONTEND_VERSION=$(shell jq -rc ".frontend_version" ../versions.json)
WEBHOOK_VERSION=$(shell jq -rc ".webhook_version" ../versions.json)
replace: SHELL := /bin/bash
replace:
2023-11-19 10:37:45 -05:00
sed -i -Ee "s/(webhook_service_tag = \").*(\")/\1$(WEBHOOK_VERSION)\2/g" terraform.tfvars
sed -i -Ee "s/(frontend_service_tag = \").*(\")/\1$(FRONTEND_VERSION)\2/g" terraform.tfvars
deploy: SHELL := /bin/bash
deploy: replace
2023-10-23 22:01:09 -04:00
tofu apply
deploy-yes: SHELL := /bin/bash
deploy-yes: replace
tofu apply -auto-approve