forked from mongodb/mongodb-atlas-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
92 lines (91 loc) · 2.44 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
before:
hooks:
- go mod tidy
builds:
- <<: &build_defaults
main: ./cmd/mongocli/mongocli.go
ldflags:
- -s -w -X github.com/mongodb/mongocli/internal/version.Version={{.Version}} -X github.com/mongodb/mongocli/internal/version.GitCommit={{.FullCommit}}
id: macos
goos: [darwin]
goarch: [amd64]
hooks:
post: gon -log-level=error gon.json
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [amd64]
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [amd64]
archives:
- id: linux
builds: [linux]
<<: &archive_defaults
files:
- README.md
- LICENSE
- third_party_notices/**/*
replacements:
darwin: macos
amd64: x86_64
wrap_in_directory: true
format: tar.gz
- id: macos
builds: [macos]
<<: *archive_defaults
format: zip
wrap_in_directory: false
- id: windows
builds: [windows]
<<: *archive_defaults
wrap_in_directory: false
format: zip
brews:
- name: mongocli
ids: [macos,linux]
tap:
owner: mongodb
name: homebrew-brew
folder: Formula
skip_upload: auto
description: The MongoDB Command Line Interface (mongocli) is a tool for managing your MongoDB cloud services, like MongoDB Atlas, MongoDB Cloud Manager, and MongoDB Ops Manager.
homepage: https://github.com/mongodb/mongocli
license: Apache-2.0
install: |
bin.install "mongocli"
(bash_completion/"mongocli.sh").write `#{bin}/mongocli completion bash`
(zsh_completion/"_mongocli").write `#{bin}/mongocli completion zsh`
(fish_completion/"mongocli.fish").write `#{bin}/mongocli completion fish`
test: |
system "#{bin}/mongocli --version"
nfpms:
- package_name: mongocli
vendor: MongoDB Inc.
homepage: https://www.mongodb.com/
maintainer: MongoDB Inc. <[email protected]>
description: The MongoDB Command Line Interface (mongocli) is a tool for managing your MongoDB cloud services, like MongoDB Atlas, MongoDB Cloud Manager, and MongoDB Ops Manager.
license: Apache 2.0
bindir: /usr/bin
builds: [linux]
formats: [deb,rpm]
replacements:
amd64: x86_64
checksum:
name_template: checksums.txt
snapshot:
name_template: next
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^build(deps):'
release:
draft: true # we only publish after the Windows MSI gets uploaded
prerelease: auto
name_template: "MongoDB CLI {{.Version}}"
extra_files:
- glob: ./dist/mongocli_macos_signed_x86_64.zip