Skip to content

Commit

Permalink
fix: use ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZ3n committed Sep 17, 2024
1 parent 04120c2 commit c3ecad1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ jobs:
container-name: ${{ env.CONTAINER_NAME }}
image: ${{ steps.build-image.outputs.image }}

- name: Register new ECS task definition with CodeDeploy
run: |
aws ecs update-service \
--cluster ${{ env.ECS_CLUSTER }} \
--service ${{ env.ECS_SERVICE }} \
--task-definition ${{ steps.task-def.outputs.task-definition }} \
--deployment-controller type=CODE_DEPLOY
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: ${{ env.ECS_SERVICE }}
cluster: ${{ env.ECS_CLUSTER }}
wait-for-service-stability: true
codedeploy-appspec: appspec.yaml
#codedeploy-application: test-code-deploy-application # use default
#codedeploy-deployment-group: test-code-deploy-deployment-group # use default

0 comments on commit c3ecad1

Please sign in to comment.