forked from replicate/cog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
57 lines (57 loc) · 1.56 KB
/
.goreleaser.yaml
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
version: 2
before:
hooks:
- go mod tidy
- make wheel
dist: ./dist/go
env:
- CGO_ENABLED=0
builds:
- binary: cog
id: cog
goos:
- darwin
- linux
goarch:
- amd64
- arm64
main: ./cmd/cog
ldflags:
- "-s -w -X github.com/replicate/cog/pkg/global.Version={{.Version}} -X github.com/replicate/cog/pkg/global.Commit={{.Commit}} -X github.com/replicate/cog/pkg/global.BuildTime={{.Date}}"
- binary: base-image
id: base-image
goos:
- darwin
- linux
goarch:
- amd64
- arm64
main: ./cmd/base-image
ldflags:
- "-s -w -X github.com/replicate/cog/pkg/global.Version={{.Version}} -X github.com/replicate/cog/pkg/global.Commit={{.Commit}} -X github.com/replicate/cog/pkg/global.BuildTime={{.Date}}"
archives:
- format: binary
builds:
- cog # for now we only release cog
name_template: >-
{{ .Binary }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end -}}
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ incpatch .Version }}-dev+g{{ .ShortCommit }}{{ if .IsGitDirty }}.d{{ .Now.Format \"20060102\" }}{{ end }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-alpha
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: auto