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

login success but push fail with err_msg "denied: requested access to the resource is denied" #12

Closed
iamtmoe opened this issue Oct 25, 2021 · 1 comment

Comments

@iamtmoe
Copy link

iamtmoe commented Oct 25, 2021

i follow the readme example, set USER_NAME and PASSWORD,github action login success but push fails
below is github action config file:

- name: Check out the repo
   uses: actions/checkout@v2

- name: Login to ACR
  uses: aliyun/acr-login@v1
  with:
    login-server: https://registry.cn-beijing.aliyuncs.com
    region-id: cn-beijing
    username: "${{ secrets.USERNAME }}"
    password: "${{ secrets.PASSWORD }}"

- name: Build and push image
  env:
    IMAGE_TAG: latest
  run: |
    docker build -t registry.cn-beijing.aliyuncs.com/tmoe/resume_web:$IMAGE_TAG .
    docker push registry.cn-beijing.aliyuncs.com/tmoe/resume_web:$IMAGE_TAG

below is action fail screenshot:
image

I try to exec docker push registry.cn-beijing.aliyuncs.com/tmoe/resume_web:$IMAGE_TAG on my local machine, and it works, but github action can not work. before use acr, i push to dockerhub, it works too.

@iamtmoe
Copy link
Author

iamtmoe commented Oct 26, 2021

i use acr image auto build when code change directly instead.

@iamtmoe iamtmoe closed this as completed Oct 26, 2021
This issue was closed.
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

1 participant