Reset build number

I’m looking for a way to automatically tag my docker images after passing build.

Seems like my best option is to rely on build number. Basically I ended up tagging images with 1.0.${DRONE_BUILD_NUMBER}. It seems to be rather sufficient but it’ll look strange once I’ll decide to update minor version (e.g. 1.0.x -> 1.1.x) as versioning will start from, for example, 1.1.154.

Is there any way to reset build number to 0? Maybe there are any other suggestions how to implement clear tagging?

Our recommendation would be to use semver concepts and append the build number in the metadata section of your version number. for example: 1.0.0-build.{DRONE_BUILD_NUMBER}