-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
94 lines (75 loc) · 1.62 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
project_name: blogit
release:
github:
owner: caixw
name: blogit
name_template: '{{.Tag}}'
builds:
- id: blogit
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
main: ./cmd/blogit
binary: blogit
flags:
- -trimpath
ldflags:
- -s -w -X github.com/caixw/blogit/v2/internal/vars.metadata={{time "20060102"}}.{{.FullCommit}} -X github.com/caixw/blogit/v2/internal/vars.version={{.Tag}}
env:
- CGO_ENABLED=0
brews:
- tap:
owner: caixw
name: homebrew-brew
url_template: "https://github.com/caixw/blogit/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: goreleaser@carlosbecker.com
folder: Formula
homepage: "https://github.com/caixw/blogit"
description: 静态博客生成工具
license: MIT
dockers:
-
ids: ['blogit']
goos: linux
goarch: amd64
dockerfile: Dockerfile
image_templates:
- "docker.io/caixw/blogit:{{ .Tag }}"
- "docker.io/caixw/blogit:v{{ .Major }}"
- "docker.io/caixw/blogit:v{{ .Major }}.{{ .Minor }}"
- "docker.io/caixw/blogit:latest"
- "ghcr.io/caixw/blogit:{{ .Tag }}"
- "ghcr.io/caixw/blogit:v{{ .Major }}"
- "ghcr.io/caixw/blogit:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/caixw/blogit:latest"
archives:
- builds:
- blogit
replacements:
darwin: macOS
format_overrides:
- goos: windows
format: zip
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
checksum:
name_template: checksums.txt
algorithm: sha256
changelog:
skip: true