-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
78 lines (71 loc) · 2.33 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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
env:
- GO111MODULE=on
before:
hooks:
# you may remove this if you don't use vgo
- go mod download
# XXX would be nice to have
# - $(go env GOPATH)/bin/go-bindata -pkg migrations -ignore '\.go$' -prefix pkg/backend/pg/migrations/ -o pkg/backend/pg/migrations/data.go pkg/backend/pg/migrations
# you may remove this if you don't need go generate
- go generate ./...
builds:
- id: job-manager
env:
- CGO_ENABLED=0
main: ./cmd/job-manager
binary: job-manager
ldflags: -s -w -X github.com/jeffrom/job-manager/release.Version={{.Version}} -X github.com/jeffrom/job-manager/release.Commit={{.ShortCommit}} -X github.com/jeffrom/job-manager/release.Date={{.Date}}
- id: jobctl
env:
- CGO_ENABLED=0
main: ./cmd/jobctl
binary: jobctl
ldflags: -s -w -X github.com/jeffrom/job-manager/release.Version={{.Version}} -X github.com/jeffrom/job-manager/release.Commit={{.ShortCommit}} -X github.com/jeffrom/job-manager/release.Date={{.Date}}
dockers:
- dockerfile: .goreleaser/Dockerfile
ids:
- job-manager
image_templates:
- "jeffrom/job-manager:latest"
- "jeffrom/job-manager:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--build-arg=VERSION={{.Version}}"
- "--build-arg=COMMIT={{.ShortCommit}}"
- "--build-arg=DATE={{.Date}}"
- dockerfile: .goreleaser/jobctl.Dockerfile
ids:
- jobctl
image_templates:
- "jeffrom/jobctl:latest"
- "jeffrom/jobctl:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--build-arg=VERSION={{.Version}}"
- "--build-arg=COMMIT={{.ShortCommit}}"
- "--build-arg=DATE={{.Date}}"
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'