operations: Update root Makefile to correctly deploy the API.

This commit is contained in:
2024-08-13 08:38:34 -05:00
parent e8c6787a83
commit 0f62d5270c
2 changed files with 4 additions and 5 deletions

View File

@ -23,8 +23,7 @@ dist/hff-entry-forms-web-${VERSION}.${TARGET_ENV}.tar.gz:
tar czf dist/hff-entry-forms-web-${VERSION}.${TARGET_ENV}.tar.gz -C web/dist .
deploy-api:
make -C api build-image push-image
cd operations/terraform && terraform apply -target module.${TARGET_ENV}_env.aws_ecs_task_definition.hff_entry_forms_api -target module.${TARGET_ENV}_env.aws_ecs_service.hff_entry_forms_api
TARGET_ENV=${TARGET_ENV} make -C api build-image push-image publish
deploy-web: dist/hff-entry-forms-web-${VERSION}.${TARGET_ENV}.tar.gz
mkdir -p temp-deploy/hff-entry-forms-web-${VERSION}