diff --git a/.github/workflows/ecr_api.yml b/.github/workflows/ecr_api.yml index e15a7a8..33e310f 100644 --- a/.github/workflows/ecr_api.yml +++ b/.github/workflows/ecr_api.yml @@ -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: