I’m struggling my head to try to understand how git tags are working https://circleci.com/docs/2.0/workflows/#executing-workflows-for-a-git-tag
And looking for all the comments related seems that I am not the only one. So something could be not well explained in the documentation.
I want to execute the build only when it matches some specific git tag.
Let’s say for example the
So I do the following:
Being in my
testbranch I commit some changes
I create one tag with
git tag config-test-circleciand push it with
I can see the tag there if I do one
In my config.yaml I have the following config:
workflows: build_and_push: jobs: - build_push_test: filters: tags: only: /.*aefdefwefwefwfwefwefwefwf.*/
aefdefwefwefwfwefwefwefwf does not match with the
config-test-circleci git tag. but it execute the build the same… Why???
What is failing here?.
If I configure my config.yaml with:
workflows: build_and_push: jobs: - build_push_test: filters: tags: only: /^config-test.*/ branches: ignore: /.*/
It does not execute the build.
How can I execute the build in one branch when it match ONLY que it match some specific git tag?
Honestly I am totally confused about how this works.
Any help will be much appreciated.