CircleCI - run goreleaser for git tags

This commit is contained in:
stefanprodan
2019-06-21 15:39:56 +03:00
parent 240591a6b8
commit 91cd2648d9
3 changed files with 10 additions and 38 deletions
+10 -11
View File
@@ -52,7 +52,7 @@ jobs:
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run: test/goreleaser.sh --skip-validate --skip-publish
- run: test/goreleaser.sh
e2e-istio-testing:
machine: true
@@ -111,21 +111,12 @@ jobs:
workflows:
version: 2
build-and-test:
test-build-push:
jobs:
- build-binary:
filters:
branches:
ignore: gh-pages
- push-binary:
requires:
- build-binary
filters:
branches:
ignore:
- /gh-pages.*/
- /docs-.*/
- /release-.*/
- e2e-istio-testing:
requires:
- build-binary
@@ -185,3 +176,11 @@ workflows:
- /gh-pages.*/
- /docs-.*/
- /release-.*/
- push-binary:
requires:
- push-container
filters:
branches:
ignore: /.*/
tags:
only: /[0-9]+(\.[0-9]+)*(-.*)*/
-2
View File
@@ -16,5 +16,3 @@ changelog:
filters:
exclude:
- '^CircleCI'
snapshot:
name_template: SNAPSHOT-{{.Commit}}
-25
View File
@@ -1,25 +0,0 @@
sudo: required
language: go
branches:
except:
- /gh-pages.*/
- /docs-.*/
go:
- 1.12.x
services:
- docker
addons:
apt:
packages:
- docker-ce
deploy:
- provider: script
skip_cleanup: true
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true