Skip to content

Deploy to Prod

Deploy to Prod #56

Workflow file for this run

name: Deploy to Prod
on:
workflow_dispatch:
concurrency:
group: prod
cancel-in-progress: true
jobs:
deploy:
name: Deploy to Prod
runs-on: ubuntu-20.04
permissions:
id-token: write
contents: read
environment: prod
env:
ECS_CLUSTER: signs-ui
ECS_SERVICE: signs-ui-prod
steps:
- uses: actions/checkout@v2
- id: metadata
uses: mbta/actions/commit-metadata@v1
- uses: mbta/actions/build-push-ecr@v2
id: build-push
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
docker-repo: ${{ secrets.DOCKER_REPO }}
- uses: mbta/actions/deploy-ecs@v2
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
ecs-cluster: ${{ env.ECS_CLUSTER }}
ecs-service: ${{ env.ECS_SERVICE }}
docker-tag: ${{ steps.build-push.outputs.docker-tag }}
- uses: mbta/actions/notify-slack-deploy@v1
if: ${{ !cancelled() }}
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
job-status: ${{ job.status }}