Skip to content

Commit

Permalink
fix: workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
abelr20 committed Aug 22, 2024
1 parent c846af7 commit e1e68d5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,17 @@ jobs:
set -e
set -o pipefail
# Update the ECS service to use the latest task definition revision
aws ecs update-service \
# Update the ECS service to use the latest task definition revision and capture output
UPDATE_OUTPUT=$(aws ecs update-service \
--cluster ${{ env.ECS_CLUSTER }} \
--service ${{ env.ECS_SERVICE }} \
--task-definition ${{ env.TASK_DEFINITION_ARN }} \
--force-new-deployment
--force-new-deployment)
# Wait until the service has stabilized
aws ecs wait services-stable \
--cluster ${{ env.ECS_CLUSTER }} \
--service ${{ env.ECS_SERVICE }} \
echo "$UPDATE_OUTPUT"
--services ${{ env.ECS_SERVICE }}
# Echo the output for debugging purposes
echo "$UPDATE_OUTPUT"

0 comments on commit e1e68d5

Please sign in to comment.