Skip to content
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

ci: automatically build & push docker image to ghcr.io #20

Merged
merged 2 commits into from
Apr 1, 2024

Conversation

tippfehlr
Copy link
Contributor

@tippfehlr tippfehlr commented Feb 26, 2024

As @TheBlueSky mentioned in #17 it would be nice to have automatic docker builds.
GitHub Actions provides this for free.

This action builds and pushes the image to ghcr.io, directly linked to the github repository.

The resulting image will be ghcr.io/oxtyped/gpodder2go.

Releases are labeled with :latest and :main is the main branch (latest commit)

Have a look at https://github.com/tippfehlr/gpodder2go in the sidebar, the ci ran in my fork and built an image

Copy link
Owner

@oxtyped oxtyped left a comment

Choose a reason for hiding this comment

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

Thanks for this! ❤️

I have no issue with this, just that we need to bump up the versions in order for it to work (ref: sigstore/cosign#3614). I've added a comment below.

.github/workflows/docker-publish.yaml Outdated Show resolved Hide resolved
@tippfehlr
Copy link
Contributor Author

I rebased the branch onto main and changed the versions to only limit to major (breaking) versions. Since the recent go requirement bump I also changed the Dockerfile to use latest golang and alpine images.

Also keep in mind that until the next version bump for gpodder2go only the :main image will be build.

@oxtyped oxtyped merged commit 25aa3d2 into oxtyped:main Apr 1, 2024
1 check passed
@tippfehlr
Copy link
Contributor Author

Thanks!

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.

None yet

2 participants