Skip to content

Commit

Permalink
Added step to extract task definition arn
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyanka-Inflectionzone committed Feb 2, 2024
1 parent cc8a7ed commit a0fd173
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/deploy-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
container-name: reancare-container
image: 443751504066.dkr.ecr.ap-south-1.amazonaws.com/reancare:${{ github.sha }}

- name: Task Definition Variable
id: taskdefintionvar
shell: bash
run: |
echo "task_definition_arn=$(aws ecs describe-task-definition --task-definition reancare-service | jq '.[] | .taskDefinitionArn')" >> $GITHUB_OUTPUT
- name: Deploy to ECS
run: |
aws ecs update-service --cluster reancare-cluster --service rean-backend --task-definition ${{ steps.task-def.outputs.task_definition_arn }} --force-new-deployment
aws ecs update-service --cluster reancare-cluster --service rean-backend --task-definition ${{ steps.taskdefintionvar.outputs.task_definition_arn }} --force-new-deployment

0 comments on commit a0fd173

Please sign in to comment.