Skip to content

Commit

Permalink
fix: ci with region change for public ecr login
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujjwal048 committed May 24, 2024
1 parent f85619d commit c25072d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci-server-.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,20 @@ jobs:
provenance: false
platforms: linux/amd64
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets[env.AWS_ROLE] }}
aws-region: us-east-1

- name: Login to Amazon ECR Public
if: ${{ env.ENV == 'dev'}}
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public

- name: Push image to Public ECR
if: ${{ env.ENV == 'dev'}}
id: push-to-public-ecr
Expand Down

0 comments on commit c25072d

Please sign in to comment.