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 d0406ed commit dd4335c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/aws-ecr-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- 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_ARN=$(aws ecs nginx-loadbalancers --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" >> $GITHUB_ENV
Expand Down

0 comments on commit dd4335c

Please sign in to comment.