Skip to content

Commit 7773f49

Browse files
Upgrade ECS task definition action and add debug step
Updated the Amazon ECS render task definition action to v2 and added a debug step to output the rendered task definition.
1 parent 24b73c8 commit 7773f49

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/deployment_new_aws_account.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,19 @@ jobs:
6565
6666
- name: Fill in the new image ID in the Amazon ECS task definition
6767
id: task-def
68-
uses: aws-actions/amazon-ecs-render-task-definition@v1
68+
uses: aws-actions/amazon-ecs-render-task-definition@v2
6969
with:
7070
task-definition: ${{ vars.ECS_TASK_DEFINITION }}
7171
container-name: ${{ vars.CONTAINER_NAME }}
7272
image: ${{ steps.build-image.outputs.image }}
7373

74+
- name: Debug rendered task def
75+
run: |
76+
echo "Rendered file: ${{ steps.task-def.outputs.task-definition }}"
77+
cat "${{ steps.task-def.outputs.task-definition }}"
78+
echo "Container names:"
79+
cat "${{ steps.task-def.outputs.task-definition }}" | jq -r '.containerDefinitions[].name'
80+
7481
- name: Deploy Amazon ECS task definition
7582
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
7683
with:

0 commit comments

Comments
 (0)