I am planning to let my pipeline triggers deployment upon creating a TAG on master branch. But I want to make sure any TAG that has the word '-rc' in the middle, will not trigger the deployment.
Why I want this?
- there are two types of TAGs
we use the first type to deploy on UAT.
second type to trigger production deployments.
Thank you.
I think it would be easier for you to define prefixes for tags and define the pipelines accordingly eg.
tags:
release-*:
- step:
....
candidate-*:
- step:
....
in your current naming scheme you could create a pattern for release candidate but not the final release easily.
alternatively you could also match all tags and only decide the logic inside a step by examining the BITBUCKET_TAG environment variable?
https://confluence.atlassian.com/bitbucket/variables-in-pipelines-794502608.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.