Skip to content

Commit

Permalink
Chore: Update action to v2 (#20)
Browse files Browse the repository at this point in the history
* Chore: Update action to v2

* add permissions
  • Loading branch information
krisrjohnson21 committed Nov 8, 2023
1 parent 34b4530 commit 67612dc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ jobs:
name: Build Container Image
runs-on: ubuntu-latest
concurrency: build-image
permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v2
- name: Get pushed tag name
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- uses: mbta/actions/build-push-ecr@v1
- uses: mbta/actions/build-push-ecr@v2
id: build-push
with:
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 }}
docker-additional-tags: ${{ steps.vars.outputs.tag }}

0 comments on commit 67612dc

Please sign in to comment.