Test commit 4225e0b507142a2e432b018bc3ccb728559b437a #176
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 | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Print current build ID | |
run: | | |
echo Integration test run: githubactionsamazonecsrende-wVtTCLjhID2l:913c448f-92d2-4e41-96d1-f86592601fb5 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-west-2 | |
- name: Render Amazon ECS task definition | |
id: render-task-definition | |
uses: aws-actions/amazon-ecs-render-task-definition@4225e0b507142a2e432b018bc3ccb728559b437a | |
with: | |
task-definition: task-definition.json | |
container-name: sample-app | |
image: amazon/amazon-ecs-sample:latest | |
- name: Validate Amazon ECS task definition | |
env: | |
TASK_DEF_FILE: ${{ steps.render-task-definition.outputs.task-definition }} | |
run: | | |
diff expected-task-definition.json $TASK_DEF_FILE | |
- name: Register Amazon ECS task definition | |
env: | |
TASK_DEF_FILE: ${{ steps.render-task-definition.outputs.task-definition }} | |
run: | | |
aws ecs register-task-definition --cli-input-json file://$TASK_DEF_FILE |