Skip to content

Commit

Permalink
Chore: Update GitHub action with assumed role
Browse files Browse the repository at this point in the history
  • Loading branch information
krisrjohnson21 authored Oct 16, 2023
1 parent 1b25d52 commit 8fd9dc1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy-ecs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Deploy to ECS

permissions:
id-token: write
contents: read

on:
schedule:
- cron: '0 5 * * *'
Expand All @@ -14,12 +18,11 @@ on:

jobs:
call-workflow:
uses: mbta/workflows/.github/workflows/deploy-ecs.yml@main
uses: mbta/actions/deploy-ecs@v2
with:
app-name: arrow
environment: ${{ github.event.inputs.environment || 'dev' }}
secrets:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
docker-repo: ${{ secrets.DOCKER_REPO }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 8fd9dc1

Please sign in to comment.