Open samuel-p opened 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
Pitch
Currently the
latest
tag from the mastodon docker image points to thev3.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.