I use plugins/docker to build docker image, but i found the image the final tag is 0.1.0-alpha1 when my tag like v0.1.0-alpha1, i hope the docker plugin use v0.1.0-alpha1 as image tag.
I don’t know why the docker plugin not support it, because i remember plugin support it before. Maybe i missing something, so if someone know, hope can tell me. Thanks.
Yes, i see the docker plugin code, it use semantic version.
I use tags parameter, like this tags: [ "${DRONE_TAG}" ], the docker plugin not works. But when i add debug: true, it works. I don’t know why.
Thanks, I remove tags and only use auto_tag, it’s OK. if my tag is v0.1.0, the image tag is 0.1.0, but I hope the image tag is the same as git tag, so I try the tags, but if I not set debug, it’s not work.
auto-tag is very opinionated and uses best practices for tagging images, based on how the official dockerhub images are tagged. Auto-tag therefore may not be a good fit for every project.
auto-tag is good, but i have some project use not semantic version use as git tag, so i can’t use this configuration, i have to use tags instead of auto_tag, but when i use tags, it not work.
I do not have enough detail to advise why it would not be working for you, however, I setup a simple yaml [1] that defines tags and then I ran the build [2] and it used the tags as expected. Manually defining tags in the yaml is a widely used feature – most projects do not use autotag.