mastodon / mastodon

Your self-hosted, globally interconnected microblogging community
https://joinmastodon.org
GNU Affero General Public License v3.0
47.15k stars 6.99k forks source link

Point latest docker tag to the newest stable version #17884

Open samuel-p opened 2 years ago

samuel-p commented 2 years ago

Pitch

Currently the latest tag from the mastodon docker image points to the v3.5.0rc3 tag, which is a release candidate.

Motivation

Maybe its possible to use the latest tag only for new stable versions, as most people expect the latest tag to be stable. Alternatively you could create another tag like stable which always points to the newest released version.

B13rg commented 2 years ago

It would just take adjusting the Github actions script, this line specifically: https://github.com/mastodon/mastodon/blob/8c7223f4eac80b5725485be742d3fa2c984f4670/.github/workflows/build-image.yml#L33

To only update the 'latest' docker tag on a new stable, non release candidate version use type=match,pattern=v(\d.\d.\d)(?!rc),group=0 Then it won't match release canidates anymore.

Another tag matcher could be added, to build and tag release candidates specifically like: type=match,pattern=v(\d.\d.\d)(rc),group=1,value={{ tag }}

PR: #17915

Documentation: https://github.com/docker/metadata-action#typematch