toverainc / willow-application-server

Willow Application Server
Apache License 2.0
19 stars 9 forks source link

CI: only add latest tag on current release version #57

Closed stintel closed 9 months ago

stintel commented 9 months ago

The metadata action automatically adds the container image tag latest when using type=ref,event=tag. This would result in any newly pushed tag receiving the latest tag. As we don't want this for rc tags, we should change the tags input.

Instead, type=semver,pattern={{ version }}. This way, the container image will receive the semver as tag. As we now no longer tag anything with latest, we need to add an input of type=raw that checks if we're tagging anything in the current stable version (0.1.*).

Finally, add an rc container image tag when the git tag contains '-rc.'. This way, people can test rc's by specifying the :rc tag.