Tag suffix and tag trigger

Hello everyone,

My pipeline is as follows:

get_tags:
image: ubuntu
commands:
- echo “5.2.6” > .tags

publish:
image: plugins/docker
context: Docker
dockerfile: Docker/Dockerfile
default_tags: true
default_suffix: commit
when:
event: [ push, tag ]
branch: master

Pipeline is not triggered on tag created on github manualy on master branch and suffix is ignored.

as addition, is it available to create suffix for tags: number of commits after last tag created on source controll?

Pipeline is not triggered on tag created on github manualy on master branch and suffix is ignored.

You need to enable tag hooks in your repository settings screen in drone

as addition, is it available to create suffix for tags: number of commits after last tag created on source controll?

If you are using default_tags, it will not read from the tags file. If you want direct control over the tag and when it is used, you should not use default tags.

OK,

I will remove default_tags. After tag hooks is enabled, tagging is fine.

And do you have some variables for noumber of commits after last tag created on git?

Thanks for answering.