From 5f98982a09ccb21fa519a1196e0316ad12fda89b Mon Sep 17 00:00:00 2001 From: Leonard Gram Date: Mon, 21 May 2018 15:57:57 +0200 Subject: [PATCH] build: clean up the workflow filters. --- .circleci/config.yml | 67 +++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 45 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3bdfe2efdcb..e9660c18d58 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,14 @@ +aliases: + # Workflow filters + - &filter-only-release + branches: + ignore: /.*/ + tags: + only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + - &filter-not-release + tags: + ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + version: 2 jobs: @@ -199,25 +210,15 @@ workflows: test-and-build: jobs: - build: - filters: - tags: - ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-not-release - codespell: - filters: - tags: - ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-not-release - gometalinter: - filters: - tags: - ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-not-release - test-frontend: - filters: - tags: - ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-not-release - test-backend: - filters: - tags: - ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-not-release - deploy-master: requires: - test-backend @@ -231,35 +232,15 @@ workflows: release: jobs: - build-all: - filters: - branches: - ignore: /.*/ - tags: - only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-only-release - codespell: - filters: - branches: - ignore: /.*/ - tags: - only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-only-release - gometalinter: - filters: - branches: - ignore: /.*/ - tags: - only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-only-release - test-frontend: - filters: - branches: - ignore: /.*/ - tags: - only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-only-release - test-backend: - filters: - branches: - ignore: /.*/ - tags: - only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-only-release - deploy-release: requires: - build-all @@ -267,11 +248,7 @@ workflows: - test-frontend - codespell - gometalinter - filters: - branches: - ignore: /.*/ - tags: - only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ + filters: *filter-only-release nightly-master: triggers: - schedule: