Skip to content

Commit

Permalink
Use ecr login action
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-french committed Mar 31, 2024
1 parent e037fb3 commit 6106caf
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ecr-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_IAM_ROLE_ARN }}

- name: Login to Public ECR
uses: docker/login-action@v3
- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v2
with:
registry: ${{ env.CONTAINER_REGISTRY }}
registry-type: public

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down Expand Up @@ -153,10 +154,11 @@
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_IAM_ROLE_ARN }}

- name: Login to Public ECR
uses: docker/login-action@v3
- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v2
with:
registry: ${{ env.CONTAINER_REGISTRY }}
registry-type: public

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down

0 comments on commit 6106caf

Please sign in to comment.