We are running drone 0.8 (using BitBucket for source control) and we’re trying to find a way to execute a build step only when a feature branch is tagged with a specific pattern (tag pattern is v.*). Any help/pointers is much appreciated.
event: [ tag ]
is a given. then, we tried combinations of branch:
and ref
, but couldn’t find a way to get this working. here are some examples of what we tried and the result we saw.
when:
status: success
branch: [ feature/* ]
ref: [ refs/heads/feature/* , refs/tags/v.* ]
event: [ tag ]
Action: tag feature branch (v.1.0.7)
Result: build step was not executed
when:
status: success
ref: [ refs/heads/feature/* , refs/tags/v.* ]
event: [ tag ]
Action: tag feature branch (v.1.0.9)
Result: build step was executed
when:
status: success
branch: [ feature/* ]
event: [ tag ]
Action: tag feature branch (v.1.0.11)
Result: build step was not executed
when:
status: success
ref: [ refs/heads/feature/* ]
event: [ tag ]
Action: tag feature branch (v.1.0.13)
Result: build step was not executed
when:
status: success
ref: [ refs/heads/master, refs/tags/v.* ]
event: [ tag ]
Action: tag feature branch (v.1.0.15)
Result: build step was executed, even though the feature branch was not in ref. this was executed likely because of the presence of refs/tags/v.*
when:
status: success
ref: [ refs/tags/v.* ]
event: [ tag ]
Action: tag feature branch (v.1.0.17)
Result: build step was executed (and expected)
when:
status: success
branch: [ feature/* ]
ref: [ ref/tags/v.* ]
event: [ tag ]
Action: tag feature branch (v.1.0.19)
Result: build step was not executed