-
Notifications
You must be signed in to change notification settings - Fork 14
/
.goreleaser.yml
59 lines (59 loc) · 1.47 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
project_name: cortex
before:
hooks:
- go get github.com/GeertJohan/go.rice/rice
- go get ./...
- rm -rf $GOPATH/src/github.com/loadimpact/k6/vendor/github.com/dop251/goja
- rm -rf $GOPATH/src/github.com/loadimpact/k6/vendor/github.com/spf13/afero
- bash build_ui.sh
- go test ./...
builds:
-
main: ./cmd/
env:
- CGO_ENABLED=0
binary: cortex
goos:
- linux
- darwin
goarch:
- amd64
archive:
format: tar.gz
name_template: "{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
linux: Linux
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
git:
short_hash: true
release:
# You can disable this pipe in order to not upload any artifacts to
# GitHub.
disable: true
puts:
-
# Unique name of your Put instance. Used to identify the instance.
name: up
# Upload mode. Valid options are `binary` and `archive`.
# If mode is `archive`, variables _Os_, _Arch_ and _Arm_ for target name are not supported.
# In that case these variables are empty.
# Default is `archive`.
mode: archive
# URL to be used as target of the HTTP PUT request
target: http://acme.com/upload
# User that will be used for the deployment
username: goreleaser
# Upload checksums (defaults to false)
# checksum: true
# Upload signatures (defaults to false)
# signature: true