ci: trigger continuation on tags (#8466)

When the config was wrapped in a continuation so that params could be
dynamically generated, this broke tag workflows since there was no
explicit tag filter anymore in config.yml. This attempts to fix that.

I may have gotten this wrong, since this is intrinsically hard to
test. We'll see next time we tag something.
This commit is contained in:
Gus Eggert 2021-09-28 12:25:32 -04:00 committed by GitHub
parent 485a5c291f
commit 731b4de91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View File

@ -2,6 +2,14 @@ version: 2.1
setup: true
orbs:
continuation: circleci/continuation@0.2.0
aliases:
only-version-tags: &only-version-tags
tags:
only: /^v[0-9].*/
branches:
ignore: /.*/
jobs:
generate-params:
executor: continuation/default
@ -35,3 +43,9 @@ workflows:
setup-workflow:
jobs:
- generate-params
# NOTE: CircleCI only builds tags if you explicitly filter for them.
setup-workflow-tag:
jobs:
- generate-params:
filters: *only-version-tags

View File

@ -442,7 +442,6 @@ workflows:
# the bifrost-* branches are used for deploying code that hasn't hit master yet (e.g. for testing)
- /^bifrost-.*/
# NOTE: CircleCI only builds tags if you explicitly filter for them. That
# also means tag-based jobs can only depend on other tag-based jobs, so we
# use a separate workflow because every job needs to be tagged together.