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 90cf4b0 commit 561c008
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/aws-ecr-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,16 @@ jobs:
cluster: ${{ env.ECS_CLUSTER }}
wait-for-service-stability: true


- name: Get ECS Service URL
id: get-url
run: |
ECS_SERVICE_URL=$(aws elbv2 describe-load-balancers --names your-load-balancer-name --region ${{ env.AWS_REGION }} --query 'LoadBalancers[0].DNSName' --output text)
echo "service-url=http://$ECS_SERVICE_URL" >> $GITHUB_ENV
- name: Integration Tests
run: |
curl -f ${{ steps.get-url.outputs.service-url }}/health || exit 1
curl -f ${{ env.service-url }}/health || exit 1
- name: Rollback on Failure
if: failure()
Expand Down

0 comments on commit 561c008

Please sign in to comment.