From d0406ed9a02b7aa0f94fe79c2b158b9350c522fd Mon Sep 17 00:00:00 2001 From: Rahul Rajak <67949307+Rahulrajak1710@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:58:49 +0530 Subject: [PATCH] Update aws-ecr-ecs.yml --- .github/workflows/aws-ecr-ecs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aws-ecr-ecs.yml b/.github/workflows/aws-ecr-ecs.yml index 9f6c0e7..b564142 100644 --- a/.github/workflows/aws-ecr-ecs.yml +++ b/.github/workflows/aws-ecr-ecs.yml @@ -93,13 +93,13 @@ jobs: # cluster: ${{ env.ECS_CLUSTER }} # wait-for-service-stability: true - - name: Get ECS Service Load Balancer URL id: get-lb-url run: | LB_ARN=$(aws ecs describe-services --cluster ${{ env.ECS_CLUSTER }} --services ${{ env.ECS_SERVICE }} --query "services[0].loadBalancers[0].loadBalancerName" --output text) LB_DNS_NAME=$(aws elbv2 describe-load-balancers --names $LB_ARN --query "LoadBalancers[0].DNSName" --output text) - echo "LB_URL=http://$LB_DNS_NAME/health" >> $GITHUB_ENV + echo "LB_URL=http://$LB_DNS_NAME" >> $GITHUB_ENV + - name: Integration Tests run: | curl -f ${{ env.LB_URL }} || exit 1