Test commit 0012bf4e7430cba4e8d7c482bc6fdfd6b1096584 #201
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- integ-tests | |
name: Integration Test | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Print current build ID | |
run: | | |
echo Integration test run: githubactionsamazonecsrende-wVtTCLjhID2l:f28ee51d-1783-4262-9d76-3c5a2251066c | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/GitHubActionsRenderTaskIntegrationTests | |
role-session-name: render_task_integration_tests | |
aws-region: us-west-2 | |
- name: Render Amazon ECS task definition with task definition file | |
id: render-task-definition-file | |
uses: aws-actions/amazon-ecs-render-task-definition@0012bf4e7430cba4e8d7c482bc6fdfd6b1096584 | |
with: | |
task-definition: task-definition.json | |
container-name: sample-app | |
image: amazon/amazon-ecs-sample:latest | |
- name: Validate Amazon ECS task definition file | |
env: | |
TASK_DEF_FILE: ${{ steps.render-task-definition-file.outputs.task-definition }} | |
run: | | |
diff expected-task-definition.json $TASK_DEF_FILE | |
- name: Register Amazon ECS task definition file | |
env: | |
TASK_DEF_FILE: ${{ steps.render-task-definition-file.outputs.task-definition }} | |
run: | | |
aws ecs register-task-definition --cli-input-json file://$TASK_DEF_FILE | |
- name: Render Amazon ECS task definition with task definition arn (amazon resource name) | |
id: render-task-definition-arn | |
uses: aws-actions/amazon-ecs-render-task-definition@0012bf4e7430cba4e8d7c482bc6fdfd6b1096584 | |
with: | |
task-definition-arn: arn:aws:ecs:us-west-2:397300886559:task-definition/github-actions-render-task-definition-integ-tests:16 | |
container-name: sample-app | |
image: amazon/amazon-ecs-sample:latest | |
- name: Render Amazon ECS task definition with task definition family | |
id: render-task-definition-family | |
uses: aws-actions/amazon-ecs-render-task-definition@0012bf4e7430cba4e8d7c482bc6fdfd6b1096584 | |
with: | |
task-definition-family: github-actions-render-task-definition-integ-tests | |
container-name: sample-app | |
image: amazon/amazon-ecs-sample:latest | |
- name: Render Amazon ECS task definition with task definition family and revision | |
id: render-task-definition-family-revision | |
uses: aws-actions/amazon-ecs-render-task-definition@0012bf4e7430cba4e8d7c482bc6fdfd6b1096584 | |
with: | |
task-definition-family: github-actions-render-task-definition-integ-tests | |
task-definition-revision: 1 | |
container-name: sample-app | |
image: amazon/amazon-ecs-sample:latest |