workflows:
version: 2.1
build_and_deploy:
jobs:
...
- deploy_prod:
requires:
- lint
- test
- build_docker
filters:
branches:
only: master
tags:
only: prod
To my understanding, having two filters (branches and tags) results in the logical or
, which is what I want. But tagging and pushing a commit with git tag -f prod <gitsha_1>
triggers a new build but doesn’t respect the tags filter. The $CIRCLE_TAG environment variable is also always empty.