Skip to content

Commit

Permalink
Update aws-ecr-ecs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahulrajak1710 authored Aug 8, 2024
1 parent 01cafeb commit d0406ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aws-ecr-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0406ed

Please sign in to comment.