Test commit 088475a4e90beb6702ca7b8593e2fcee64481b24 #185
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:e1ae1444-7ccf-40a5-89bb-583eb97fa782 | |
- 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@088475a4e90beb6702ca7b8593e2fcee64481b24 | |
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 |