Hi all
I am trying to use the tag event in Drone and have created the following pipeline:
kind: pipeline
type: docker
name: Using event tag
steps:
- name: echo some variables
image: busybox:1.31.1
settings:
commit: ${DRONE_COMMIT_MESSAGE}
url: ${DRONE_GIT_HTTP_URL}
semver: ${DRONE_SEMVER}
commands:
- echo $PLUGIN_COMMIT
- echo $PLUGIN_URL
- echo $PLUGIN_SEMVER
- name: wait for event tag
image: busybox:1.31.1
settings:
tag: ${DRONE_TAG}
semver: ${DRONE_SEMVER}
commands:
- echo I am waiting for event tag
- echo $PLUGIN_TAG
- echo $PLUGIN_SEMVER
when:
event:
- tag
trigger:
branch:
- master
When I commit and push, then the first step echo some variables
starts to run.
After the push, I’ve tagged the repo and push it as the following:
git tag 0.1.0
git push origin --tags
But the step wait for event tag
never starts. You can find the repo here: https://gitlab.com/oceanstack/playtag
Why Drone does not show the step wait for event tag
:
Tag Push event is enabled on repo:
What am I doing wrong?
Thanks