forked from sourcegraph/src-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
56 lines (56 loc) · 1.18 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
dist: release
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go mod download
- go mod tidy
- go generate ./schema
builds:
-
main: ./cmd/src/
binary: src
ldflags:
- -X github.com/sourcegraph/src-cli/internal/version.BuildTag={{.Version}}
goos:
- linux
- windows
- darwin
goarch:
- amd64
archives:
- id: tarball
format: tar.gz
- id: bin
format: binary
wrap_in_directory: false
name_template: "src_{{ .Os }}_{{ .Arch }}"
brews:
-
name: src-cli
homepage: "https://sourcegraph.com/"
description: "Sourcegraph CLI"
tap:
owner: sourcegraph
name: homebrew-src-cli
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
# We need to set this so that goreleaser doesn't think the binary is called
# `src-cli`
install: |
bin.install "src"
dockers:
- dockerfile: Dockerfile.release
image_templates:
- "sourcegraph/src-cli:{{ .Tag }}"
- "sourcegraph/src-cli:{{ .Major }}"
- "sourcegraph/src-cli:{{ .Major }}.{{ .Minor }}"
- "sourcegraph/src-cli:latest"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'