-
Notifications
You must be signed in to change notification settings - Fork 44
/
goreleaser.yaml
71 lines (66 loc) · 1.46 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
project_name: govatar
before:
hooks:
- go mod download
build:
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{ .Version }}
main: govatar/main.go
binary: govatar
goos:
- darwin
- linux
- windows
- freebsd
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 5
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: freebsd
goarch: arm
archives:
-
name_template: "{{.Os}}-{{.Arch}}{{if .Arm}}v{{.Arm}}{{end}}-{{ .ProjectName }}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
dockers:
-
dockerfile: Dockerfile
goos: linux
goarch: amd64
goarm: ''
image_templates:
- "o1egl/govatar:latest"
- "o1egl/govatar:{{ .Tag }}"
- "o1egl/govatar:v{{ .Major }}"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.authors=Oleg Lobanov"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
brews:
- name: govatar
tap:
owner: o1egl
name: homebrew-tap
folder: Formula
homepage: https://github.com/o1egl/govatar
commit_author:
name: Oleg Lobanov
email: oleg@lobanov.me
description: GOvatar is an avatar generation library written in GO
license: "MIT"