From 2a0b175b534b8bdc10bb4f5c9eade6fc12366d7d Mon Sep 17 00:00:00 2001 From: Evan Stohlmann Date: Wed, 27 Nov 2024 12:09:33 -0700 Subject: [PATCH] make file checks --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d90a667..6b982bb 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,7 @@ DEPLOYMENT_STAGE := prod endif # ACCOUNT_NUMBERS_ECR - AWS account numbers that need to be logged into with Docker CLI to use ECR -ifneq ($(yq '.accountNumbersEcr'), ) +ifneq ($(shell cat $(PROJECT_DIR)/config-custom.yaml | yq '.accountNumbersEcr'), null) ACCOUNT_NUMBERS_ECR := $(shell cat $(PROJECT_DIR)/config-custom.yaml | yq .accountNumbersEcr[]) endif @@ -103,7 +103,7 @@ ifneq ($(findstring $(DEPLOYMENT_STAGE),$(STACK)),$(DEPLOYMENT_STAGE)) endif # MODEL_IDS - IDs of models to deploy -ifneq ($(yq '.ecsModels'), ) +ifneq ($(shell cat $(PROJECT_DIR)/config-custom.yaml | yq '.ecsModels'), null) MODEL_IDS := $(shell cat $(PROJECT_DIR)/config-custom.yaml | yq '.ecsModels[].modelName') endif