-
Notifications
You must be signed in to change notification settings - Fork 28
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
Cannot push to Github Container Registry #15
Comments
It says the username is empty - Is GHCR_USERNAME set in your secrets? You could probably just use github.actor instead. |
Note that full instructions (including setting this) are in the README https://github.com/singularityhub/github-ci#1-enable-packages |
Thanks for the quick reply. I indeed forgot to set the username secret, but I tried again using either |
Note that I can correctly push a Docker image using a different workflow. |
I think if you are getting this error trying to push a local image, you might want to debug that first. E.g., there are many settings for packages and typically you need to make sure they are enabled and your user account has permission to push to a specific repository where they are enabled. |
Thanks again for the assistance! Do you mind if I leave this issue open so I can come back and write a solution in case I am able to solve the problem? |
Yes please do! I hope you figure it out and can add some notes here - I definitely faced similar issues when I was first using packages and it's been too long for me to remember the details beyond needing to set up permissions. |
Hi, I'm trying to build a Singularity and push it to Github Container Registry using one of the Github Actions workflow provided in this repo as a template.
I run a modified version of the "Docker" workflow, where I skip the step that checks whether the Singularity recipe has been changed in order to build the image at every push. Here is the content of the
.yaml
file for this workflow.The container is built without error but it fails on the Login and Deploy Container step with a
404
error:One of the failed runs
Am I doing something wrong?
Thanks,
Gianluca
The text was updated successfully, but these errors were encountered: