Skip to content

Deploy to Prod (ECS) #55

Deploy to Prod (ECS)

Deploy to Prod (ECS) #55

Workflow file for this run

name: Deploy to Prod (ECS)
on: workflow_dispatch
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: prod
concurrency: prod
env:
ECS_CLUSTER: api
ECS_SERVICE: api-prod
steps:
- uses: actions/checkout@v2
- uses: mbta/actions/build-push-ecr@v1
id: build-push
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
docker-repo: ${{ secrets.DOCKER_REPO }}
- name: Deploy to ECS
uses: mbta/actions/deploy-ecs@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
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 }}