From 9f79b3f2c668a2cc3e9fafb879c2cdcd67fcda90 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Tue, 27 Feb 2018 19:03:03 -0700 Subject: [PATCH] added tag filter --- circle.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/circle.yml b/circle.yml index ec48c3014..3548b12de 100644 --- a/circle.yml +++ b/circle.yml @@ -112,6 +112,13 @@ jobs: name: Deploy the code command: bash ./scripts/docker.sh +filter_tags: &filter_tags + filters: + branches: + ignore: /.*/ + tags: + only: /v[0-9]+(\.[0-9]+)*/ + workflows: version: 2 build-test-and-deploy: @@ -144,33 +151,35 @@ workflows: - test_integration_firefox - test_integration_edge deploy-tagged: - triggers: - filters: - branches: - ignore: /.*/ - tags: - only: /v[0-9]+(\.[0-9]+)*/ jobs: - - npm_dependencies + - npm_dependencies: + <<: *filter_tags - lint: + <<: *filter_tags requires: - npm_dependencies - test_unit: + <<: *filter_tags requires: - npm_dependencies - build_assets: + <<: *filter_tags requires: - npm_dependencies - test_integration_chrome: + <<: *filter_tags requires: - build_assets - test_integration_firefox: + <<: *filter_tags requires: - build_assets - test_integration_edge: + <<: *filter_tags requires: - build_assets - deploy: + <<: *filter_tags context: coralproject requires: - lint