DST-17030 Deploy UMT task definitions #1
Workflow file for this run
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
name: Deploy | |
on: push | |
permissions: | |
id-token: write # Required for OIDC | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::326912278139:role/modernisation-platform-oidc-cicd | |
role-session-name: delius-user-management-deploy-${{ github.run_number }} | |
aws-region: eu-west-2 | |
- name: Fill in the new image ID in the Amazon ECS task definition | |
id: task-def | |
uses: aws-actions/amazon-ecs-render-task-definition@c804dfbdd57f713b6c079302a4c01db7017a36fc | |
with: | |
task-definition: task-definition.json | |
container-name: umt | |
image: 374269020027.dkr.ecr.eu-west-2.amazonaws.com/delius-core-user-management:dev | |
- name: Deploy Amazon ECS task definition | |
uses: aws-actions/amazon-ecs-deploy-task-definition@df9643053eda01f169e64a0e60233aacca83799a | |
with: | |
task-definition: ${{ steps.task-def.outputs.task-definition }} | |
service: umt | |
cluster: delius-core-dev-cluster | |
wait-for-service-stability: true |