I would like to create rule for:
changes in folder foo && branch = master && tag pushed
My current rules not working:
rules:
- if: $CI_COMMIT_TAG && '$CI_COMMIT_BRANCH == "master"'
- changes:
- foo/**/*
Looks like gitlab take like a OR.
What is wrong?
As stated in the gitlab documentation:
To conjoin if, changes, and exists clauses with an AND, use them in the same rule.
So it should be:
rules:
- if: $CI_COMMIT_TAG && '$CI_COMMIT_BRANCH == "master"'
changes:
- foo/**/*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With