Skip to content

Commit

Permalink
Avoid dupe
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 18, 2024
1 parent 243491a commit ef6c80e
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/ecr_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,6 @@ jobs:
- name: Docker Push API
run: docker push ${{secrets.AWS_ACCOUNT_ID}}.dkr.ecr.${{secrets.AWS_REGION}}.amazonaws.com/coe-ecr-auth:${{github.event.pull_request.head.sha || github.sha}}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws-us-gov:iam::${{secrets.AWS_ACCOUNT_ID}}:role/Github-ECR-Builder
role-session-name: GithubECRBuilder
aws-region: ${{secrets.AWS_REGION}}

- name: Docker Build API
run: docker-compose build api

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Docker Tag API
run: docker tag auth-infra_api:latest ${{secrets.AWS_ACCOUNT_ID}}.dkr.ecr.${{secrets.AWS_REGION}}.amazonaws.com/coe-ecr-auth:${{github.event.pull_request.head.sha || github.sha}}

- name: Docker Push API
run: docker push ${{secrets.AWS_ACCOUNT_ID}}.dkr.ecr.${{secrets.AWS_REGION}}.amazonaws.com/coe-ecr-auth:${{github.event.pull_request.head.sha || github.sha}}

- name: Configure AWS Credentials (STAGING)
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down

0 comments on commit ef6c80e

Please sign in to comment.