-
Notifications
You must be signed in to change notification settings - Fork 43
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
Remove Rust ping binary in favor of published docker image #112
Remove Rust ping binary in favor of published docker image #112
Comments
3 ( |
I started working on this in my fork: https://github.com/thomaseizinger/rust-libp2p The relevant workflow is here: https://github.com/thomaseizinger/rust-libp2p/blob/master/.github/workflows/publish-interop-image.yml Now, in order to push to the container registry, one needs to login via I don't like that. The only solution I can think of is to create a bot account that we use for these workflows. Thoughts @mxinden @galargh @jxs? |
If @mxinden were to trigger the release, the package would be under his account, etc. Although I do think that once a package is pushed to one account, it "remains" there but others might have push access? It is a pretty weird system to be honest. |
Not sure I fully understand the problem, why not hardcode the username? This is how I publish docker images for quic-go (for the QUIC interop runner): https://github.com/quic-go/quic-go/blob/master/.github/workflows/build-interop-docker.yml |
I don't think it is good if these package are "owned" by a personal account. |
Agreed. I was thinking of either using the libp2p org account (if that’s possible), or creating a dedicated account for that purpose. |
GitHub allows bot accounts per T&Cs so that would be my preference unless someone has a better solution. |
I'd just use a shared libp2p dockerhub account. |
I was thinking of uploading the images to the GitHub container registry but I am also happy to push them to DockerHub. Perhaps that is the easiest solution after all. |
If that's up for discussion, I'd go with GHCR too. Packages/images can definitely be owned by orgs (so in this case, it'd be |
In my experiments (see workflow above), you need to always supply an account that logs into the registry and said account then owns the packages. |
Here's my test repository in my test org: https://github.com/galorgh/github-from-galargh ( I created this public package - https://github.com/galorgh/github-from-galargh/pkgs/container/github-from-galargh - which appears under the org namespace using the following workflow - https://github.com/galorgh/github-from-galargh/actions/runs/3996742039/workflow. I guess the issue is that you were publishing the images from your fork rather than from this repository. If you set up publishing here, you should be able to create images in the |
Thanks! I'll try it on the real repository then instead of the fork! |
Yeah I understand now what is happening. My expectation was that the image would be owned by the repository rather than the account the repository lives under. What seems to happen is that packages are owned by accounts / organizations and only linked to repositories! Thanks for testing this with me @galargh. I should have something working soon! |
PR is up: libp2p/rust-libp2p#3383 |
This was closed in error. |
But with libp2p/rust-libp2p#3383 merged, the next steps are:
Once the containers are released, make a PR to this repo, adding more entries to |
I've created 3 branches:
Once approved, I will run the workflow to publish the docker images but close the PRs. Once the docker images are published, we can send a PR to this repository, removing the |
cc @mxinden @jxs
Tracking the follow-up work from libp2p/rust-libp2p#3331 here.
How many versions do we want to go back?
The text was updated successfully, but these errors were encountered: