Since 1 week I try to use tag filtering to deploy only tag that start with v.
I read this doc : https://circleci.com/docs/2.0/workflows/#using-contexts-and-filtering-in-your-workflows
But my tag was never trigger and/or never filter by CircleCI. I try to push my tag with multiple way:
- git push origin my-branche myTag
- git push origin myTag
- git push origin --tags
Nothing works. Below is the last config I have used:
workflows:
version: 2
build-test-and-approval-package:
jobs:
- build-and-test:
filters:
tags:
only: /.*/
- package:
requires:
- build-and-test
filters:
tags:
only: /.*/
branches:
ignore: /.*/
Another thing that I noticed is that $CIRCLE_TAG is not defined. Any one can help?
thank you