Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/actions/api-deploy-ecs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,20 @@ runs:
shell: bash

- name: Deploy Amazon ECS web task definition
id: deploy-api-task-def
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
with:
cluster: ${{ inputs.aws_ecs_cluster_name }}
service: ${{ inputs.aws_ecs_service_name }}
task-definition: ${{ steps.task-def-api.outputs.task-definition }}

- name: Deploy Amazon ECS SDK service task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
with:
cluster: ${{ inputs.aws_ecs_cluster_name }}
service: ${{ inputs.aws_ecs_sdk_service_name }}
task-definition: ${{ steps.task-def-api.outputs.task-definition }}
- name: Deploy Amazon ECS SDK service with same task definition
run: |
aws ecs update-service \
--cluster ${{ inputs.aws_ecs_cluster_name }} \
--service ${{ inputs.aws_ecs_sdk_service_name }} \
--task-definition ${{ steps.deploy-api-task-def.outputs.task-definition-arn }}
shell: bash

# The DynamoDB Identity Migrator uses the same task definition as the SQL schema migrator but overrides the container definition
# with the new django execute target
Expand Down
Loading