Test commit 612ac18cbe228145b92e632fe1d140372af59adf #179
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:4f5701b0-4002-4cfe-8db9-1d6d79df3b7e | |
- 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@612ac18cbe228145b92e632fe1d140372af59adf | |
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 |