File tree Expand file tree Collapse file tree 5 files changed +19
-53
lines changed Expand file tree Collapse file tree 5 files changed +19
-53
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,14 @@ archives:
34
34
- README*
35
35
- docs/*
36
36
snapshot :
37
- name_template : SNAPSHOT- {{ .Commit }}
37
+ name_template : " {{ .Version }}_SNAPSHOT_{{ .ShortCommit }} "
38
38
nfpms :
39
39
- file_name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
40
40
license : Apache 2.0
41
+ maintainer : Elastic Cloud
42
+ vendor : Elastic
43
+ description : ecctl is the CLI for the Elasticsearch Service and Elastic Cloud Enterprise APIs.
44
+ homepage : https://www.elastic.co/guide/en/ecctl/current/index.html
41
45
replacements :
42
46
amd64 : 64-bit
43
47
" 386 " : 32-bit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -40,20 +40,20 @@ endif
40
40
@ git push -u $(REMOTE) $(VERSION)
41
41
42
42
## Releases a new version of ecctl, use SKIP_TAG=true to skip publishing a tag.
43
- release:
43
+ release: deps
44
44
@ test -s notes/$(VERSION).md || (echo "-> changelog file is missing, please create it with 'make changelog'"; exit 2)
45
45
ifneq ($(SKIP_TAG),true)
46
46
@ $(MAKE) tag
47
47
endif
48
48
@ echo "-> Releasing $(BINARY) $(VERSION)..."
49
49
@ okta-awscli
50
- @ ./scripts /goreleaser release --skip-validate --rm-dist --release-notes=notes/$(VERSION).md
50
+ @ $(GOBIN) /goreleaser release --skip-validate --rm-dist --release-notes=notes/$(VERSION).md
51
51
52
52
## Generates a changelog file in notes/$(VERSION) for the next release.
53
53
changelog:
54
54
@ echo "-> Generating $(BINARY) changelog $(VERSION)..."
55
55
@ ./scripts/generate-changelog.sh
56
56
57
57
## Generates a snapshot of the potential release
58
- snapshot:
59
- @ ./scripts /goreleaser release --rm-dist --snapshot --skip-validate
58
+ snapshot: deps
59
+ @ $(GOBIN) /goreleaser release --rm-dist --snapshot --skip-validate
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ VERSION_GOLINT:=v0.0.0-20191125180803-fdd1cda4f05f
9
9
VERSION_GOLICENSER:=v0.3.0
10
10
VERSION_GOLANGCILINT:=v1.23.8
11
11
VERSION_GOBINDATA:=v0.0.0-20190711162640-ee3c2418e368
12
+ VERSION_GORELEASER:=v0.136.0
12
13
13
- deps: $(GOBIN)/gobin $(GOBIN)/golint $(GOBIN)/go-licenser $(GOBIN)/golangci-lint $(GOBIN)/go-bindata
14
+ deps: $(GOBIN)/gobin $(GOBIN)/golint $(GOBIN)/go-licenser $(GOBIN)/golangci-lint $(GOBIN)/go-bindata $(GOBIN)/goreleaser
14
15
15
16
$(GOBIN):
16
17
@ mkdir -p $(GOBIN)
@@ -59,3 +60,11 @@ $(VERSION_DIR)/.version-go-bindata-$(VERSION_GOBINDATA):
59
60
$(GOBIN)/go-bindata: $(GOBIN)/gobin $(VERSION_DIR)/.version-go-bindata-$(VERSION_GOBINDATA) | $(GOBIN)
60
61
@ echo "-> Installing go-bindata..."
61
62
@ $(GOBIN)/gobin github.com/go-bindata/go-bindata/go-bindata@$(VERSION_GOBINDATA)
63
+
64
+ $(VERSION_DIR)/.version-goreleaser-$(VERSION_GORELEASER): | $(VERSION_DIR)
65
+ @ rm -f $(VERSION_DIR)/.version-goreleaser-*
66
+ @ echo $(VERSION_GORELEASER) > $(VERSION_DIR)/.version-goreleaser-$(VERSION_GORELEASER)
67
+
68
+ $(GOBIN)/goreleaser: $(VERSION_DIR)/.version-goreleaser-$(VERSION_GORELEASER) | $(GOBIN)
69
+ @ echo "-> Installing goreleaser..."
70
+ @ curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh| sh -s -- -b $(GOBIN) $(VERSION_GORELEASER)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments