Skip to content

Commit

Permalink
Merge pull request #22 from Programmers-Only-Group/POPS-68
Browse files Browse the repository at this point in the history
POPS-68 - Fix deployment
  • Loading branch information
bwieckow authored Dec 1, 2020
2 parents 6f3f561 + 36fc5aa commit 0c3a411
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/auth_deploy_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,20 @@ jobs:
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
- name: Update auth_task_definition.json execution role arn
uses: jossef/action-set-json-field@v1
with:
file: ./auth_task_definition.json
field: executionRoleArn
value: ${{ secrets.EXECUTION_ROLE_ARN }}

- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ./auth_task_definition.json
container-name: auth
image: ${{ steps.build-image.outputs.image }}
executionRoleArn: ${{ secrets.EXECUTION_ROLE_ARN }}

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
Expand Down

0 comments on commit 0c3a411

Please sign in to comment.