|
|
@ -116,7 +116,7 @@ jobs: |
|
|
|
- name: Run migrations task |
|
|
|
- name: Run migrations task |
|
|
|
env: |
|
|
|
env: |
|
|
|
ad_hoc_task_definition: ${{ inputs.aws_resource_prefix }}-ad-hoc |
|
|
|
ad_hoc_task_definition: ${{ inputs.aws_resource_prefix }}-ad-hoc |
|
|
|
cluster: ${{ inputs.aws_resource_prefix }}-app |
|
|
|
cluster: ${{ inputs.aws_resource_prefix }} |
|
|
|
service: ${{ inputs.aws_resource_prefix }}-app |
|
|
|
service: ${{ inputs.aws_resource_prefix }}-app |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
network=$(aws ecs describe-services --cluster $cluster --services $service --query services[0].networkConfiguration) |
|
|
|
network=$(aws ecs describe-services --cluster $cluster --services $service --query services[0].networkConfiguration) |
|
|
@ -146,7 +146,7 @@ jobs: |
|
|
|
- name: Deploy updated application |
|
|
|
- name: Deploy updated application |
|
|
|
uses: aws-actions/amazon-ecs-deploy-task-definition@v1 |
|
|
|
uses: aws-actions/amazon-ecs-deploy-task-definition@v1 |
|
|
|
with: |
|
|
|
with: |
|
|
|
cluster: ${{ inputs.aws_resource_prefix }}-app |
|
|
|
cluster: ${{ inputs.aws_resource_prefix }} |
|
|
|
service: ${{ inputs.aws_resource_prefix }}-app |
|
|
|
service: ${{ inputs.aws_resource_prefix }}-app |
|
|
|
task-definition: ${{ steps.app-task-def.outputs.task-definition }} |
|
|
|
task-definition: ${{ steps.app-task-def.outputs.task-definition }} |
|
|
|
wait-for-service-stability: true |
|
|
|
wait-for-service-stability: true |
|
|
@ -168,7 +168,7 @@ jobs: |
|
|
|
- name: Deploy updated sidekiq |
|
|
|
- name: Deploy updated sidekiq |
|
|
|
uses: aws-actions/amazon-ecs-deploy-task-definition@v1 |
|
|
|
uses: aws-actions/amazon-ecs-deploy-task-definition@v1 |
|
|
|
with: |
|
|
|
with: |
|
|
|
cluster: ${{ inputs.aws_resource_prefix }}-app |
|
|
|
cluster: ${{ inputs.aws_resource_prefix }} |
|
|
|
service: ${{ inputs.aws_resource_prefix }}-sidekiq |
|
|
|
service: ${{ inputs.aws_resource_prefix }}-sidekiq |
|
|
|
task-definition: ${{ steps.sidekiq-task-def.outputs.task-definition }} |
|
|
|
task-definition: ${{ steps.sidekiq-task-def.outputs.task-definition }} |
|
|
|
wait-for-service-stability: true |
|
|
|
wait-for-service-stability: true |
|
|
|