Skip to content

Commit b4512e7

Browse files
owaisbogdandrutu
andauthored
Enable publishing releases from tags (#749)
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]>
1 parent 83ef027 commit b4512e7

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.circleci/config.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,46 @@ workflows:
3434
version: 2
3535
build-and-test:
3636
jobs:
37-
- setup-and-lint
37+
- setup-and-lint:
38+
filters:
39+
tags:
40+
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
3841
- build:
3942
requires:
4043
- setup-and-lint
44+
filters:
45+
tags:
46+
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
4147
- cross-compile:
4248
requires:
4349
- build
50+
filters:
51+
tags:
52+
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
4453
- loadtest:
4554
requires:
4655
- build
56+
filters:
57+
tags:
58+
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
4759
- test:
4860
requires:
4961
- setup-and-lint
62+
filters:
63+
tags:
64+
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
5065
- gosec:
5166
requires:
5267
- setup-and-lint
68+
filters:
69+
tags:
70+
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
5371
- coverage:
5472
requires:
5573
- setup-and-lint
74+
filters:
75+
tags:
76+
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
5677
- publish-stable:
5778
requires:
5879
- cross-compile
@@ -64,7 +85,7 @@ workflows:
6485
branches:
6586
ignore: /.*/
6687
tags:
67-
only: /^v[0-9].[0-9].[0-9]+.*/
88+
only: /^v([0-9])+.([0-9])+.([0-9])+.*/
6889

6990
jobs:
7091
setup-and-lint:

0 commit comments

Comments
 (0)