Commit 5f98982a by Leonard Gram

build: clean up the workflow filters.

parent 7b1e41ab
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 version: 2
jobs: jobs:
...@@ -199,25 +210,15 @@ workflows: ...@@ -199,25 +210,15 @@ workflows:
test-and-build: test-and-build:
jobs: jobs:
- build: - build:
filters: filters: *filter-not-release
tags:
ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- codespell: - codespell:
filters: filters: *filter-not-release
tags:
ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- gometalinter: - gometalinter:
filters: filters: *filter-not-release
tags:
ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- test-frontend: - test-frontend:
filters: filters: *filter-not-release
tags:
ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- test-backend: - test-backend:
filters: filters: *filter-not-release
tags:
ignore: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- deploy-master: - deploy-master:
requires: requires:
- test-backend - test-backend
...@@ -231,35 +232,15 @@ workflows: ...@@ -231,35 +232,15 @@ workflows:
release: release:
jobs: jobs:
- build-all: - build-all:
filters: filters: *filter-only-release
branches:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- codespell: - codespell:
filters: filters: *filter-only-release
branches:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- gometalinter: - gometalinter:
filters: filters: *filter-only-release
branches:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- test-frontend: - test-frontend:
filters: filters: *filter-only-release
branches:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- test-backend: - test-backend:
filters: filters: *filter-only-release
branches:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- deploy-release: - deploy-release:
requires: requires:
- build-all - build-all
...@@ -267,11 +248,7 @@ workflows: ...@@ -267,11 +248,7 @@ workflows:
- test-frontend - test-frontend
- codespell - codespell
- gometalinter - gometalinter
filters: filters: *filter-only-release
branches:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
nightly-master: nightly-master:
triggers: triggers:
- schedule: - schedule:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment