File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1+ dist : dist
2+ builds :
3+ - main : ./main.go
4+ env :
5+ - CGO_ENABLED=1
6+ - GO111MODULE=on
7+ - GOFLAGS=-mod=vendor
8+ goos :
9+ - linux
10+ goarch :
11+ - amd64
12+ ldflags :
13+ - -w -s
14+ - -X "github.com/prometheus/common/version.Version={{ .Tag }}"
15+ - -X "github.com/prometheus/common/version.Revision={{ .Env.REVISION }}"
16+ - -X "github.com/prometheus/common/version.Branch={{ .Env.BRANCH }}"
17+ - -X "github.com/prometheus/common/version.BuildUser={{ .Env.USER }}"
18+ - -X "github.com/prometheus/common/version.BuildDate={{ .Env.BUILD_DATE }}"
19+ archives :
20+ - name_template : " {{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
21+ wrap_in_directory : false
22+ files :
23+ - LICENSE
24+ checksum :
25+ name_template : ' CHECKSUM'
26+ release :
27+ github :
28+ owner : grepplabs
29+ name : mqtt-proxy
30+ draft : true
31+ prerelease : auto
Original file line number Diff line number Diff line change @@ -81,4 +81,8 @@ release-setup:
8181release-publish : release-setup
8282 @[ " ${GITHUB_TOKEN} " ] && echo " releasing $( TAG) " || ( echo " GITHUB_TOKEN is not set" ; exit 1 )
8383 git push origin $(TAG )
84- $(ROOT_DIR ) /bin/goreleaser release --rm-dist
84+ REVISION=$(REVISION ) BRANCH=$(BRANCH ) BUILD_DATE=$(BUILD_DATE ) $(ROOT_DIR ) /bin/goreleaser release --rm-dist
85+
86+ .PHONY : release-snapshot
87+ release-snapshot :
88+ REVISION=$(REVISION ) BRANCH=$(BRANCH ) BUILD_DATE=$(BUILD_DATE ) $(ROOT_DIR ) /bin/goreleaser --debug --rm-dist --snapshot --skip-publish
You can’t perform that action at this time.
0 commit comments