Test commit 1414c0acaeaa4634a48f96aaba0baf6088f6aca6 #174
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:602d5611-14ea-40e3-8ae2-9c81cd27f2f2 | |
- 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@1414c0acaeaa4634a48f96aaba0baf6088f6aca6 | |
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 |