# Event tagging behaviour

**URL:** <https://drone.discourse.group/t/event-tagging-behaviour/8383>\
**Category:** Drone Support\
**Created:** [February 6, 2019, 6:20am UTC](https://drone.discourse.group/t/event-tagging-behaviour/8383 "2019-02-06T06:20:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sybnex](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/sybnex/32/4950_2.png) [@sybnex](https://drone.discourse.group/u/sybnex)\
**Post date:** [February 6, 2019, 6:20am UTC](https://drone.discourse.group/t/event-tagging-behaviour/8383/1 "2019-02-06T06:20:29Z")

</div>

Hi,

using drone 1.0 RC5 and Gogs on x86 as Container in Kubernetes.

I started playing with using tags in the pipeline. I tried several things to get it work and in the begining it was looking good. But after a few pipeline runs I recognize, that every push scrolls up the pipeline well. But every change on the pipeline, e.g. chaning names or adding more steps was’n recognize by drone anymore.

Examples:  
`kind: pipeline  
name: testing

steps:

- name: pytest  
image: alpine-python  
commands:

- name: building  
image: plugins/docker  
settings:  
registry: “[docker-registry.company.com](http://docker-registry.company.com)”  
username:  
from\_secret: docker\_username  
password:  
from\_secret: docker\_password  
repo: “[docker-registry.company.com/dudu/ibps/extnodes](http://docker-registry.company.com/dudu/ibps/extnodes)”  
tag: ${DRONE\_TAG}  
bip: 172.28.0.1/14  
custom\_dns: 10.33.194.1  
when:  
event: tag`

I made some change in the code and: git commit -am “testing dockerfile”; git push  
The step “pytest” is created … as expected.  
Now: git tag v1.0.0-alpha-12; git push --tags … and both parts are executed. But the plugin is somehow not working und complains about “invalid argument “” for “-t, --tag” flag: invalid reference format” because -t was empty.

So I played a little bit more and just added this as a step in the .drone.yaml to figure out the problem:  
`- name: checking  
image: alpine  
commands:

- echo ${DRONE\_TAG}  
when:  
event: tag`

When i created another commit/tag. drone was executing the pipeline with the correct git version but he was just ignoring the new pipeline step at all.  
I had to reinstall the whole drone server, so that he finally saw the new step in the pipeline and was able to execute it.

Did I missed anything? Or did something wrong?
