Modify Docker Hub deployment filter rules.

The documentation is unclear/incorrect, and these filters aren't
behaving correctly. This is an attempt at fixing that. More info at:
https://discuss.circleci.com/t/job-runs-even-when-tags-ignore-filter-is-triggered-when-combined-with-branches-only/20664/11
This commit is contained in:
Cody Soyland 2020-04-02 12:12:17 -05:00
parent 14319cc54b
commit 6a639efdba

View file

@ -211,20 +211,6 @@ workflows:
- linter
- check-license-headers
- test-golang-1.14
- dockerhub-upload:
name: dockerhub-upload-stable
tag_branch: true
tag_tag: true
tag_latest: true
requires:
- linter
- check-license-headers
- test-golang-1.14
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- dockerhub-upload:
name: dockerhub-upload-unstable
tag_branch: true
@ -237,5 +223,17 @@ workflows:
filters:
branches:
only: enterprise
- dockerhub-upload:
name: dockerhub-upload-stable
tag_branch: true
tag_tag: true
tag_latest: true
requires:
- linter
- check-license-headers
- test-golang-1.14
filters:
tags:
ignore: /^v.*/
only: /^v.*/
branches:
ignore: /.*/