Merge pull request #408 from mbta/dependabot/npm_and_yarn/assets/babe… #378
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 to Dev ECS | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
environment: dev | |
concurrency: dev | |
steps: | |
- uses: actions/checkout@v2 | |
- 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: document-viewer | |
ecs-service: document-viewer-dev | |
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 }} |