From b41045c542aabf5e7360f13e3840ecf669c6f88c Mon Sep 17 00:00:00 2001 From: Tobias Guggenmos Date: Fri, 14 Feb 2020 13:23:08 +0100 Subject: [PATCH] Fix release builds Signed-off-by: Tobias Guggenmos --- .circleci/config.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2f67de84..d6070b39 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,6 +31,7 @@ jobs: steps: - checkout - run: GO111MODULE=on go get github.com/goreleaser/goreleaser@v0.126.0 + - run: git reset --hard - run: make crossbuild - run: mkdir artifacts - run: mv dist/*.tar.gz dist/checksums.txt artifacts @@ -43,6 +44,7 @@ jobs: steps: - checkout - run: GO111MODULE=on go get github.com/goreleaser/goreleaser@v0.126.0 + - run: git reset --hard - run: make release check_repo_consistency: @@ -74,6 +76,33 @@ workflows: - test - check_repo_consistency - crossbuild + + release: + jobs: + - build: + filters: + branches: + ignore: /.*/ + tags: + only: /v[0-9]+(\.[0-9]+)*(-.*)*/ + - test: + filters: + branches: + ignore: /.*/ + tags: + only: /v[0-9]+(\.[0-9]+)*(-.*)*/ + - check_repo_consistency: + filters: + branches: + ignore: /.*/ + tags: + only: /v[0-9]+(\.[0-9]+)*(-.*)*/ + - crossbuild: + filters: + branches: + ignore: /.*/ + tags: + only: /v[0-9]+(\.[0-9]+)*(-.*)*/ - hold: type: approval