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