I’m not sure what i’m doing wrong here, any help would be greatly appreciated.
Building a pipeline where certain events (like deployments) happen on tags. I’m using drone exec to test said pipeline and i can’t seem to be able to trigger any steps on tag events.
--- name: Build kind: pipeline steps: - name: Build image: maven:3.6.0-jdk-11 commands: - echo "Build" when: branch: - feature/* - master - name: Build Image image: docker commands: - apk add bash git make - echo "build image" when: branch: - feature/* - master --- name: Deploy kind: pipeline trigger: event: - tag ref: - rc-v* steps: - name: Tag Image image: docker commands: - echo "tag image"
if i test a branch push event using
drone exec --branch master --event push
i can see the steps been executed
# drone exec --branch master --event push [Build:0] + echo "Build" [Build:1] Build [Build Image:0] + apk add bash git make [Build Image:1] fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz [Build Image:2] fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz [Build Image:3] (1/11) Installing ncurses-terminfo-base (6.1_p20190518-r0) [Build Image:4] (2/11) Installing ncurses-terminfo (6.1_p20190518-r0) [Build Image:5] (3/11) Installing ncurses-libs (6.1_p20190518-r0) [Build Image:6] (4/11) Installing readline (8.0.0-r0) [Build Image:7] (5/11) Installing bash (5.0.0-r0) [Build Image:8] Executing bash-5.0.0-r0.post-install [Build Image:9] (6/11) Installing nghttp2-libs (1.38.0-r0) [Build Image:10] (7/11) Installing libcurl (7.65.1-r0) [Build Image:11] (8/11) Installing expat (2.2.7-r0) ...
when i want to test the tag event like this
drone exec --event tag --ref rc-v0.1.09
no steps are executed. what am i doing wrong? i tried various combinations for ref like
refs/tags/rc-v0.1.09 and nothing seems to be working
i’m using drone version 1.1.2 MacOsX
#drone --version drone version 1.1.2