Pushing a new docker for glib gitlab CI

Hello there,

I try to be familiar with gitlab CI pipelines so I decided to take a look at https://gitlab.gnome.org/GNOME/glib/-/issues/2046

For that I need to add package into debian-stable Docker so I follow guideline in .gitlab-ci/README.md and build a new docker. For pushing it in registry.gitlab.gnome.org/gnome/glib/debian-stable I create a personnal access token:

, but I still getting denied access:

PUSHING: debian-stable as registry.gitlab.gnome.org/gnome/glib/debian-stable:v7
Authenticating with existing credentials...
Login Succeeded
The push refers to repository [registry.gitlab.gnome.org/gnome/glib/debian-stable]
822e94c4a6bc: Preparing 
7dd6c9482a48: Preparing 
a61c6d8610eb: Preparing 
7f2ecbd9fadb: Preparing 
6fdf766eb251: Preparing 
a63a5f94fa0a: Waiting 
9780f6d83e45: Waiting 
denied: requested access to the resource is denied

Can you tell me what am I missing please ?

You cannot push to the GLib registry yourself, because you’re not one of the GLib maintainers. At most, you can push to the registry of your personal fork. For that, you’ll have to extract the repository location and modify the run-docker.sh script—or simply call the command that the script calls, but with a different repository URL.

Ok thanks, now that you tell, it is pretty logical that I cannot push in glib registry :wink:
Nevertheless I have the same error even if I modified the url

PUSHING: debian-stable as registry.gitlab.gnome.org/gnome/fmartinsons/glib/debian-stable:v1
Username: fmartinsons
Password: 
Login Succeeded
The push refers to repository [registry.gitlab.gnome.org/gnome/fmartinsons/glib/debian-stable]
822e94c4a6bc: Preparing 
7dd6c9482a48: Preparing 
a61c6d8610eb: Preparing 
7f2ecbd9fadb: Preparing 
6fdf766eb251: Preparing 
a63a5f94fa0a: Waiting 
9780f6d83e45: Waiting 
denied: requested access to the resource is denied

Maybe it is a problem of URL , I tried also registry.gitlab.gnome.org/fmartinsons/glib/debian-stable but the result is the same

I don’t think you have access to the registry, at all (i.e. not only GLib’s part). The correct course of a actions would probably be to get your work done for https://gitlab.gnome.org/GNOME/glib/-/issues/2046, submit a MR for it and then it’ll get pushed to the official registry when you manage to get it merged (after review).

Yes, I try many workaround described in https://gitlab.com/gitlab-org/gitlab/-/issues/18284 or https://gitlab.com/gitlab-org/gitlab/-/issues/19211 , I even create a gitlab personnal access token with all permissions possible, but I’m still unable to push images on my personnal repo :frowning:

I think I’ll do as you suggested and create the MR while explaining why I couldn’t fully test the implem.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.