forked from elastic/ecctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
49 lines (49 loc) · 1.05 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
project_name: ecctl
before:
hooks:
- go mod download
- go mod tidy
release:
github:
owner: elastic
name: ecctl
name_template: '{{.Tag}}'
draft: false
disable: true
builds:
- main: .
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- "386"
ignore:
- goos: darwin
goarch: 386
ldflags: -s -w -X main.version={{.Env.VERSION }} -X main.commit={{.Commit}} -X main.owner={{.Env.OWNER}} -X main.repo={{.Env.REPO}} -X main.built={{.Env.BUILT}}
binary: ecctl
lang: go
archives:
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm}}v{{ .Arm }}{{ end }}'
format: tar.gz
files:
- LICENSE*
- README*
- docs/*
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
nfpms:
- file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
license: Apache 2.0
replacements:
amd64: 64-bit
"386": 32-bit
formats:
- deb
- rpm
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
dist: dist