Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECR push permission issues #42

Open
fbuinosquy1985 opened this issue Jun 27, 2022 · 1 comment
Open

ECR push permission issues #42

fbuinosquy1985 opened this issue Jun 27, 2022 · 1 comment

Comments

@fbuinosquy1985
Copy link

fbuinosquy1985 commented Jun 27, 2022

Hello , i have this GH action workflow set.

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

- name: Get short SHA
  id: slug
  run: |
    echo "COMMIT=$(echo ${{ github.event.pull_request.base.sha }} | cut -c1-7)" >> $GITHUB_ENV
    echo "EKS_SERVICE=nginx" >> $GITHUB_ENV
    echo "ECR_PASSWORD=${{ steps.login-ecr.outputs.docker_password_425300134585_dkr_ecr_us_west_1_amazonaws_com }}" >> $GITHUB_ENV
    echo "${{ steps.login-ecr.outputs.docker_username_425300134585_dkr_ecr_us_west_1_amazonaws_com }}"
            
- name: Kaniko build
  uses: aevea/action-kaniko@master
  with:
    image: 425300134585.dkr.ecr.us-west-1.amazonaws.com/${{env.EKS_SERVICE}}
    registry: 425300134585.dkr.ecr.us-west-1.amazonaws.com
    tag: latest
    build_file: Dockerfile
    path: Nginx
    password: ${{env.ECR_PASSWORD}} #${{ steps.login-ecr.outputs.docker_password_425300134585_dkr_ecr_us_west_1_amazonaws_com }}
    username: "AWS" #${{ steps.login-ecr.outputs.docker_username_425300134585_dkr_ecr_us_west_1_amazonaws_com }}
    #cache: false

`

I want to build my Dockerfile thats on Nginx/Dockerfile path , and push it to 425300134585.dkr.ecr.us-west-1.amazonaws.com/nginx:latest

and i have this error

error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for "***.dkr.ecr.***.amazonaws.com/***.dkr.ecr.***.amazonaws.com/nginx:latest": Post "https://***.dkr.ecr.***.amazonaws.com/v2/***.dkr.ecr.***.amazonaws.com/nginx/blobs/uploads/": EOF

Thoughts ? i know that i have the correct push permissions because im using the same ecr login process with docker fine .

@bruno-bsp
Copy link

I have the same issue, can't quite figure out what is the correct format to fill in for the parameters. Would love a working example for ecr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants