Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 4

Github Registry Docker Push - Cannot find package version

This YAML was working until yesterday. Today, I am getting this error: name unknown: Request failed with : Cannot find package version with version id `91122`, please ensure that your token has `repo`, `read:packages` & `write:packages` scopes.

 

I created new tokens with read and write permissions but couldn't solve the problem.

 

steps:
    - name: Login to GitHub Registry
      run: echo ${{ secrets.GITHUB_REGISTRY_TOKEN }} | docker login docker.pkg.github.com --username "fatihyildizhan" --password-stdin
    
    - uses: actions/checkout@master
   
    - name: Build the Docker Image
      run: docker build . --file Dockerfile --tag docker.pkg.github.com/fatihyildizhan/repo-name/app:latest
    
    - name: Push to GitHub Registry
      run: docker push docker.pkg.github.com/fatihyildizhan/repo-name/app:latest
    
    - name: Logout
      run: docker logout
3 Replies
Ground Controller Lvl 1
Message 2 of 4

Re: Github Registry Docker Push - Cannot find package version

same here. 

 

My assume is image name is unique on user not repository.

Copilot Lvl 3
Message 3 of 4

Re: Github Registry Docker Push - Cannot find package version

It seems like you're correct. If you go to your profile and click on packages you will see that even if they're in a different repository they are shared between your entire profile. Kind of annoying, but glad there's a workaround

Copilot Lvl 2
Message 4 of 4

Re: Github Registry Docker Push - Cannot find package version

Seems to be right, images names are unique on user level and not repository level. A bit odd considering the repository is part of the tag name though. A workaround could be adding a prefix/suffix to the image name.