trickstercache / trickster

Open Source HTTP Reverse Proxy Cache and Time Series Dashboard Accelerator
https://trickstercache.org
Apache License 2.0
1.98k stars 177 forks source link

Add docker image publishing workflows #712

Closed Starttoaster closed 2 months ago

Starttoaster commented 5 months ago

Sorry for the radio silence on this, I wanted to get to this sooner but I've been extremely busy as of late unfortunately. Eventually carved out time to work on this :smile: Regards https://github.com/trickstercache/trickster/issues/691 FYI @jnichols-git

These workflows should handle building and pushing images to docker hub and github's container registry, using qemu and docker buildx to build for the arm64 and amd64 platforms.

We have two files here:

publish-docker.yaml:

publish-docker-prerelease.yaml:

A slight change here that I wanted to specifically call out was that this adds a new kind of tag that I don't think you currently do. And this is the tag that will get rebuilt over time from a fresh alpine base. Which is the :main tag. I can also just switch this to be the :latest tag, depending on what you want. But :main gets refreshed every week. :latest will just track the latest released version and will be refreshed every time a release happens. And the semver tags will just be tagged once when a release is cut.

Some important general notes here:

Starttoaster commented 5 months ago

Ah, my commits are signed but not signed off on. So I'm failing that DCO check. Will fix that but will have to force push it up.

edit: Fixed signoffs.

Starttoaster commented 5 months ago

FYI, I set up mostly the same workflows in a repo of my own just to try them out, and you can see what they did. The only thing I think I stripped out was the docker hub login, for testing purposes I'm just using github's container registry. But here: https://github.com/Starttoaster/ci-playground I created a release tag, a pre-release tag, and just ran CI against a push to main. Those created the following tagged version https://github.com/Starttoaster/ci-playground/pkgs/container/ci-playground

Starttoaster commented 2 months ago

Closing. I think there's a lack of interest here. I'm just going to own my fork of this repo with security patches :)