-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
.goreleaser.yml
74 lines (74 loc) · 2.28 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
# Build customization
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/asciigraph/main.go
ldflags: '-s -w'
# GOOS list to build in.
# For more info refer to https://golang.org/doc/install/source#environment
goos:
- linux
- darwin
- windows
# GOARCH to build in.
# For more info refer to https://golang.org/doc/install/source#environment
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_sha512-checksums.txt'
algorithm: sha512
# Archive customization
archives:
- id: tar
format: tar.gz
files:
- LICENSE
- README.md
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: guptarohit
name: asciigraph
# If set to true, will not auto-publish the release.
# Default is false.
draft: true
dockers:
- image_templates:
- 'ghcr.io/guptarohit/asciigraph:{{ .Version }}'
- 'ghcr.io/guptarohit/asciigraph:{{ .Tag }}'
- 'ghcr.io/guptarohit/asciigraph:v{{ .Major }}'
- 'ghcr.io/guptarohit/asciigraph:v{{ .Major }}.{{ .Minor }}'
- 'ghcr.io/guptarohit/asciigraph:latest'
dockerfile: goreleaser.dockerfile
build_flag_templates:
- '--label=org.opencontainers.image.title={{ .ProjectName }}'
- '--label=org.opencontainers.image.name={{ .ProjectName }}'
- '--label=org.opencontainers.image.description=Go package to make lightweight line graphs ╭┈╯ in CLI'
- '--label=org.opencontainers.image.url=https://github.com/guptarohit/asciigraph'
- '--label=org.opencontainers.image.source=https://github.com/guptarohit/asciigraph'
- '--label=org.opencontainers.image.version={{ .Version }}'
- '--label=org.opencontainers.image.created={{ .Date }}'
- '--label=org.opencontainers.image.revision={{ .FullCommit }}'
- '--label=org.opencontainers.image.licenses=BSD-3-Clause'