Skip to content

Publish mlbt image to ghcr#81

Merged
andschneider merged 1 commit intomlb-rs:mainfrom
isaacnboyd:publish-mlbt-to-ghcr
Jul 8, 2025
Merged

Publish mlbt image to ghcr#81
andschneider merged 1 commit intomlb-rs:mainfrom
isaacnboyd:publish-mlbt-to-ghcr

Conversation

@isaacnboyd
Copy link
Contributor

Hello,

Please consider this PR. You can see how it works on my fork, https://github.com/isaacnboyd/mlbt/pkgs/container/mlbt.
This will publish images to ghcr.io/andschneider/mlbt. This requires no action by yourself, it will use your GITHUB_TOKEN,
much like you already are doing with softprops/action-gh-release@v1. This adds a "Packages" section to the right hand
column as you can see on my fork: https://github.com/isaacnboyd/mlbt.

Let me know if you have questions and thanks for all the work you've done on this project recently!

=================================================================================
This commit includes actions to publish images to the github container registry on both pushes to the main branch and tagged releases. The labels, most importantly the org.opencontainers.image.source is a requirement for public access to the built image.

Copy link
Collaborator

@andschneider andschneider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Down for this. Could it be published to ghcr.io/mlb-rs/mlbt though?

@andschneider
Copy link
Collaborator

I'd also like to make the Docker image smaller so it's faster to pull. This PR should do the trick #82

@isaacnboyd
Copy link
Contributor Author

Down for this. Could it be published to ghcr.io/mlb-rs/mlbt though?

I believe so? I'll test it.

@isaacnboyd
Copy link
Contributor Author

I think I'd like to add a docker build test to this on pull_request as well.

@andschneider
Copy link
Collaborator

Down for this. Could it be published to ghcr.io/mlb-rs/mlbt though?

I believe so? I'll test it.

Might just need to merge this in with it and see what happens. Or change the action to run on push for this PR

@isaacnboyd isaacnboyd force-pushed the publish-mlbt-to-ghcr branch 2 times, most recently from 3a882bd to 9abe3df Compare July 8, 2025 18:58
@isaacnboyd
Copy link
Contributor Author

Down for this. Could it be published to ghcr.io/mlb-rs/mlbt though?

I believe so? I'll test it.

Might just need to merge this in with it and see what happens. Or change the action to run on push for this PR

I tested this out with a fake org. It works, the only thing you'll have to do is make the package public.
You can do that after this is merged by going to Packages -> mlbt -> package settings -> Change package visibility.

This commit includes actions to publish images to the github
container registry on both pushes to the main branch and
tagged releases.

The labels, most importantly the org.opencontainers.image.source
is a requirement for public access to the built image.

NOTE: For users to be able to pull the image, the mlbt package
will need to be made public. This is located in package settings.

Signed-off-by: Isaac Boyd <isaacnboyd@gmail.com>
@isaacnboyd isaacnboyd force-pushed the publish-mlbt-to-ghcr branch from 9abe3df to ccb9226 Compare July 8, 2025 20:47
@andschneider andschneider merged commit 8773fca into mlb-rs:main Jul 8, 2025
3 checks passed
@andschneider
Copy link
Collaborator

Looks like it worked! Thanks for this!

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

Successfully merging this pull request may close these issues.

2 participants