Skip to content

Commit

Permalink
FEAT: Add workflows for deploying TM Ingestion (#338)
Browse files Browse the repository at this point in the history
TransitMaster Ingestion is a new application that will run a cron
schedule on the ITD Transit Gateway subnet in staging and prod
environments.

Expand the `deploy-base.yaml` to deploy this application conditionally.
Set that flag to true for both prod and staging deployment scripts and
add it as an input in the manual deployment script.
  • Loading branch information
mzappitello authored May 17, 2024
1 parent fc052aa commit cec8313
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ on:
required: false
default: false
type: boolean
deploy-tm-ingestion:
description: Should the TransitMaster Ingestion Application be Deployed
required: false
default: false
type: boolean
deploy-tableau-publisher:
description: Should the Tableau Publisher Application be Deployed
required: false
Expand Down Expand Up @@ -92,6 +97,16 @@ jobs:
ecs-cluster: lamp
ecs-service: lamp-bus-performance-manager-${{ inputs.environment }}
docker-tag: ${{ steps.build-push.outputs.docker-tag }}
- name: Deploy TransitMaster Ingestion Application
id: deploy-tm-ingestion
if: ${{ inputs.deploy-tm-ingestion && inputs.environment != 'dev' }}
uses: mbta/actions/deploy-scheduled-ecs@v2
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
ecs-cluster: lamp
ecs-service: lamp-tm-ingestion-${{ inputs.environment }}
ecs-task-definition: lamp-tm-ingestion-${{ inputs.environment }}
docker-tag: ${{ steps.build-push.outputs.docker-tag }}
- name: Deploy Tableau Publisher Application
id: deploy-tableau-publisher
if: ${{ inputs.deploy-tableau-publisher && inputs.environment == 'prod' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ jobs:
deploy-ingestion: true
deploy-rail-pm: true
deploy-bus-pm: true
deploy-tm-ingestion: true
deploy-tableau-publisher: true
secrets: inherit
1 change: 1 addition & 0 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ jobs:
deploy-ingestion: true
deploy-rail-pm: true
deploy-bus-pm: true
deploy-tm-ingestion: true
secrets: inherit
5 changes: 5 additions & 0 deletions .github/workflows/manual-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
description: Deploy Bus Performance Manager
default: false
type: boolean
deploy-tm-ingestion:
description: Deploy TransitMaster Ingestion (not run on Dev)
default: false
type: boolean
deploy-tableau-publisher:
description: Deploy Tableau Publisher (only run on Prod)
default: false
Expand All @@ -39,5 +43,6 @@ jobs:
deploy-ingestion: ${{ fromJson(github.event.inputs.deploy-ingestion) }}
deploy-rail-pm: ${{ fromJson(github.event.inputs.deploy-rail-pm) }}
deploy-bus-pm: ${{ fromJson(github.event.inputs.deploy-bus-pm) }}
deploy-tm-ingestion: ${{ fromJson(github.event.inputs.deploy-tm-ingestion) }}
deploy-tableau-publisher: ${{ fromJson(github.event.inputs.deploy-tableau-publisher) }}
secrets: inherit

0 comments on commit cec8313

Please sign in to comment.