Skip to content

Commit

Permalink
refactor: use shared ECS deployment workflow
Browse files Browse the repository at this point in the history
This enables selecting the environment to deploy to at deploy time, enabling deployment to dev-blue
for https://app.asana.com/0/584764604969369/1206766411887391/f.
  • Loading branch information
bklebe committed Jun 3, 2024
1 parent 4ee6698 commit cf3f7eb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 102 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy-ecs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to ECS

on:
schedule:
- cron: "0 5 * * *"
workflow_dispatch:
inputs:
environment:
type: environment
required: true
default: dev
push:
branches: master

jobs:
call-workflow:
uses: mbta/workflows/.github/workflows/deploy-ecs.yml@v2
with:
app-name: concentrate
environment: ${{ github.event.inputs.environment || 'dev' }}
secrets:
aws-role-arn: ${{ secrets.AWS_ROLE_ARN }}
docker-repo: ${{ secrets.DOCKER_REPO }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
35 changes: 0 additions & 35 deletions .github/workflows/dev-green.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/dev.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/prod.yml

This file was deleted.

0 comments on commit cf3f7eb

Please sign in to comment.