drone-plugins/drone-docker

Smarter autotag :1

lunny opened this issue · 1 comments

lunny commented

For gitea, sometimes, we release v1.11.8 docker after v1.12.0, but we would like to keep :1 still point to v1.12.0 but not v1.11.8? How should we configure it?

Currently there is no way builtin to handle that in a smarter way. But instead of relying on the pretty simple auto tagging you could write a .tags file in a previous step, on tag per line, and it will be used to define the tags. That way you could to some curl command or define the tags based on the version number, you are totally free on that.

For reference: https://github.com/drone-plugins/drone-docker/blob/master/cmd/drone-docker/main.go#L123-L129