-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
127 lines (114 loc) · 2.98 KB
/
.goreleaser.yml
File metadata and controls
127 lines (114 loc) · 2.98 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: 2
before:
hooks:
- go mod tidy
- npm install --prefix assets
- npm run --prefix assets build
builds:
- main: ./cmd/beancount
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags: -s -w -X main.Version={{ .Version }} -X main.CommitSHA={{ .ShortCommit }}
goos:
- linux
- windows
- darwin
binary: beancount
archives:
- formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_
{{- 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
formats: [zip]
files:
- COPYING
- README*
dockers_v2:
- images:
- "ghcr.io/robinvdvleuten/beancount"
tags:
- "v{{ .Version }}"
- latest
labels:
"org.opencontainers.image.description": "Fast, lightweight Beancount parser, formatter and editor"
"org.opencontainers.image.created": "{{.Date}}"
"org.opencontainers.image.name": "{{.ProjectName}}"
"org.opencontainers.image.revision": "{{.FullCommit}}"
"org.opencontainers.image.version": "{{.Version}}"
"org.opencontainers.image.source": "{{.GitURL}}"
gomod:
# Build from local source to include frontend assets built in before hooks
proxy: false
sboms:
- artifacts: archive
- id: assets
cmd: bash
args:
- "-c"
- "npm sbom --prefix ../assets --sbom-format spdx --sbom-type application --omit dev > ${document}"
documents:
- "{{ .ArtifactName }}.sbom_assets.json"
signs:
- artifacts: checksum
signature: "${artifact}.sigstore.json"
output: true
cmd: cosign
args:
- sign-blob
- "--bundle=${signature}"
- "${artifact}"
- --yes
docker_signs:
- artifacts: manifests
output: true
cmd: cosign
args:
- sign
- "${artifact}@${digest}"
- --yes
nfpms:
- vendor: robinvdvleuten
homepage: https://github.com/robinvdvleuten/beancount
maintainer: Robin van der Vleuten <robin@webstronauts.com>
description: A fast, lightweight Beancount parser and formatter written in Go
license: GPL-2.0
formats:
- deb
- rpm
- apk
bindir: /usr/bin
homebrew_casks:
- repository:
owner: robinvdvleuten
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TOKEN }}"
binary: beancount
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "#{staged_path}/beancount"]
end
commit_author:
name: "Robin van der Vleuten"
email: "robin@webstronauts.com"
homepage: "https://github.com/robinvdvleuten/beancount"
description: "A fast, lightweight Beancount parser and formatter written in Go"
skip_upload: auto
checksum:
name_template: "checksums.txt"
release:
mode: keep-existing
draft: false
prerelease: false
changelog:
disable: true