Skip to content

Commit

Permalink
Enable publishing releases from tags (#749)
Browse files Browse the repository at this point in the history
Circle was not running any builds for tags because the publish job had
other jobs as dependencies and they did not explicitly specify that they
should be run for tags. Looks like Circle will always run a job for any
branch unless the branch is ignored and never run a job for a tag unless
the tag is explicitly enabled.

Co-authored-by: Bogdan Drutu <[email protected]>
  • Loading branch information
owais and bogdandrutu authored Mar 30, 2020
1 parent 83ef027 commit b4512e7
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,46 @@ workflows:
version: 2
build-and-test:
jobs:
- setup-and-lint
- setup-and-lint:
filters:
tags:
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
- build:
requires:
- setup-and-lint
filters:
tags:
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
- cross-compile:
requires:
- build
filters:
tags:
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
- loadtest:
requires:
- build
filters:
tags:
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
- test:
requires:
- setup-and-lint
filters:
tags:
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
- gosec:
requires:
- setup-and-lint
filters:
tags:
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
- coverage:
requires:
- setup-and-lint
filters:
tags:
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
- publish-stable:
requires:
- cross-compile
Expand All @@ -64,7 +85,7 @@ workflows:
branches:
ignore: /.*/
tags:
only: /^v[0-9].[0-9].[0-9]+.*/
only: /^v([0-9])+.([0-9])+.([0-9])+.*/

jobs:
setup-and-lint:
Expand Down

0 comments on commit b4512e7

Please sign in to comment.