File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed
Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1- name : build
2-
1+ name : ci
32on : push
4-
53jobs :
6- build :
4+ test :
75 runs-on : ubuntu-latest
8-
96 steps :
107 - name : checkout
118 uses : actions/checkout@v2
1815
1916 - name : acceptance-test
2017 run : make docker-acceptance
18+
19+ goreleaser :
20+ runs-on : ubuntu-latest
21+ needs : test
22+ if : startsWith(github.ref, 'refs/tags/v')
23+ steps :
24+ - name : checkout
25+ uses : actions/checkout@v2
26+
27+ - name : goreleaser
28+ run : make release
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11builds :
22 - env :
33 - CGO_ENABLED=0
4+ - GOFLAGS = -mod=vendor
5+ - GO111MODULE = on
46 goos :
57 - windows
68 - linux
79 - darwin
10+ flags :
11+ - -trimpath
12+ - -tags=netgo
13+ - -a
14+ ldflags :
15+ - -extldflags "-static"
816archives :
917 - format : tar.gz
1018 format_overrides :
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ docker-acceptance: build-bats
2929 docker run -t bats acceptance.bats
3030
3131release :
32- goreleaser --rm-dist
32+ docker run -e GITHUB_TOKEN -t -v $$ PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform goreleaser/goreleaser:v0.138 goreleaser release --rm-dist
You can’t perform that action at this time.
0 commit comments