-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.goreleaser.yml
More file actions
105 lines (94 loc) · 2.27 KB
/
.goreleaser.yml
File metadata and controls
105 lines (94 loc) · 2.27 KB
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
95
96
97
98
99
100
101
102
103
104
105
version: 2
env:
- CGO_ENABLED=0
before:
hooks:
- go mod download
- go mod tidy
builds:
- id: pig
main: ./main.go
binary: pig
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -extldflags "-static"
- -X 'pig/internal/config.PigVersion={{.Version}}'
- -X 'pig/internal/config.PigstyVersion=4.3.0'
- -X 'pig/internal/config.Branch={{.Branch}}'
- -X 'pig/internal/config.Revision={{.ShortCommit}}'
- -X 'pig/internal/config.BuildDate={{.Date}}'
flags:
- -a
archives:
- id: pig
name_template: >-
{{ .ProjectName }}-v{{ .Version }}.
{{- if eq .Os "darwin" }}darwin{{- else }}{{ .Os }}{{- end }}-
{{- if eq .Arch "amd64" }}amd64
{{- else if eq .Arch "arm64" }}arm64
{{- else }}{{ .Arch }}{{ end }}
nfpms:
- id: pig-packages
package_name: pig
file_name_template: >-
{{ .PackageName }}
{{- if eq .Format "deb" }}_{{ .Version }}-1_
{{- if eq .Arch "amd64" }}amd64
{{- else if eq .Arch "arm64" }}arm64
{{- else }}{{ .Arch }}{{ end }}
{{- else if eq .Format "rpm" }}-{{ .Version }}-1.
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
{{- end }}
vendor: "PGSTY"
homepage: "https://pgext.cloud/pig"
maintainer: "Ruohang Feng <rh@vonng.com>"
description: |
PostgreSQL Extension Package Manager and CLI Tool
license: "Apache-2.0"
formats:
- deb
- rpm
bindir: /usr/bin
contents:
- src: LICENSE
dst: /usr/share/doc/pig/LICENSE
file_info:
mode: 0644
release: "1"
rpm:
summary: "PostgreSQL Package Manger CLI"
group: "Applications/Databases"
checksum:
name_template: 'checksums.txt'
algorithm: sha256
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- 'Merge pull request'
- 'Merge branch'
release:
github:
owner: pgsty
name: pig
draft: false
prerelease: false
mode: replace
replace_existing_artifacts: true
name_template: "{{.ProjectName}}-v{{.Version}}"
disable: false
announce:
skip: true