From 4be99e758d7bc1c4cbd4acaed39c82fae65179d2 Mon Sep 17 00:00:00 2001 From: Sheetal Date: Wed, 17 Apr 2024 11:19:28 +0530 Subject: [PATCH] pipeline implemetation --- .github/workflows/dev-api-gateway.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev-api-gateway.yml b/.github/workflows/dev-api-gateway.yml index 76d2f0ff2..476f35797 100644 --- a/.github/workflows/dev-api-gateway.yml +++ b/.github/workflows/dev-api-gateway.yml @@ -73,7 +73,7 @@ jobs: - name: Update Task Definition and service run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/api-gateway-service.json) - NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/api-gateway-service.json) + NAME=$(jq -r '.containerDefinitions[0].name' taskdef/api-gateway-taskdef.json) SERVICE_NAME="${NAME}_service" echo "SERVICE_NAME: $SERVICE_NAME"