forked from cello-proj/cello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
73 lines (73 loc) · 2.08 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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
#
project_name: argo-cloudops
before:
hooks:
# Run this first to avoid possible issues with concurrent builds.
- go mod tidy
builds:
- id: service
binary: service
main: ./service/
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
flags:
- -trimpath
ldflags:
# Don't use the default to avoid passing in 'BuildBy'.
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
- id: cli
binary: argo-cloudops
main: ./cli/
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
flags:
- -trimpath
ldflags:
# Don't use the default to avoid passing in 'BuildBy'.
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
archives:
- id: service
builds:
- service
# So it doesn't try to add the default 'extra' files (README, CHANGELOG, etc.)
files:
- none*
# Don't use the default so we can pass 'service' to in the archive file
# name.
name_template: "{{ .ProjectName }}_service_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
386: i386
amd64: x86_64
- id: cli
builds:
- cli
# Don't use the default so we can pass 'cli' to in the archive file name.
name_template: "{{ .ProjectName }}_cli_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
# So it doesn't try to add the default 'extra' files (README, CHANGELOG, etc.)
files:
- none*
replacements:
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
release:
# Mark non-final version tags (e.g. -dev, -alpha, -beta, etc.) as draft
# releases.
prerelease: auto
extra_files:
- glob: ./tmp/cdk-typescript-example.tar.gz
- glob: ./tmp/terraform-example.tar.gz
changelog: