Skip to content

Commit b41045c

Browse files
committed
Fix release builds
Signed-off-by: Tobias Guggenmos <[email protected]>
1 parent cd2e746 commit b41045c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
steps:
3232
- checkout
3333
- run: GO111MODULE=on go get github.com/goreleaser/[email protected]
34+
- run: git reset --hard
3435
- run: make crossbuild
3536
- run: mkdir artifacts
3637
- run: mv dist/*.tar.gz dist/checksums.txt artifacts
@@ -43,6 +44,7 @@ jobs:
4344
steps:
4445
- checkout
4546
- run: GO111MODULE=on go get github.com/goreleaser/[email protected]
47+
- run: git reset --hard
4648
- run: make release
4749

4850
check_repo_consistency:
@@ -74,6 +76,33 @@ workflows:
7476
- test
7577
- check_repo_consistency
7678
- crossbuild
79+
80+
release:
81+
jobs:
82+
- build:
83+
filters:
84+
branches:
85+
ignore: /.*/
86+
tags:
87+
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
88+
- test:
89+
filters:
90+
branches:
91+
ignore: /.*/
92+
tags:
93+
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
94+
- check_repo_consistency:
95+
filters:
96+
branches:
97+
ignore: /.*/
98+
tags:
99+
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
100+
- crossbuild:
101+
filters:
102+
branches:
103+
ignore: /.*/
104+
tags:
105+
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
77106
- hold:
78107
type:
79108
approval

0 commit comments

Comments
 (0)