From 731b4de91ccfa302aec8e34b854fc705fc0559a8 Mon Sep 17 00:00:00 2001 From: Gus Eggert <877588+guseggert@users.noreply.github.com> Date: Tue, 28 Sep 2021 12:25:32 -0400 Subject: [PATCH] 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. --- .circleci/config.yml | 14 ++++++++++++++ .circleci/main.yml | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ffabab7ada7..0cd964f03b3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/.circleci/main.yml b/.circleci/main.yml index f91814ee9a2..2f1fcc16d62 100644 --- a/.circleci/main.yml +++ b/.circleci/main.yml @@ -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.