forked from openbao/openbao
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoreleaser.linux.yaml
More file actions
131 lines (123 loc) · 3.12 KB
/
Copy pathgoreleaser.linux.yaml
File metadata and controls
131 lines (123 loc) · 3.12 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
128
129
130
131
version: 2
project_name: openbao
builds:
- id: builds-linux
binary: bao
tags:
- ui
ldflags:
- -X github.com/openbao/openbao/v2/internal/version.fullVersion={{ .Version }} -X github.com/openbao/openbao/v2/internal/version.GitCommit={{ .Commit }} -X github.com/openbao/openbao/v2/internal/version.CommitDate={{ .Date }}
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
skip: false
report_sizes: true
nfpms:
- vendor: OpenBao
package_name: openbao
homepage: https://openbao.org
maintainer: OpenBao <openbao@lists.openssf.org>
description: |
OpenBao exists to provide a software solution to manage, store, and distribute
sensitive data including secrets, certificates, and keys.
license: MPL-2.0
formats:
- deb
- rpm
- archlinux
dependencies:
- openssl
provides:
- openbao
conflicts:
- bao
- bao-hsm
replaces:
- bao
bindir: /usr/bin
section: default
contents:
- src: ./LICENSE
dst: /usr/share/doc/openbao/copyright
file_info:
mode: 0644
- src: ./.release/linux/package/etc/openbao/openbao.env
dst: /etc/openbao/openbao.env
type: config|noreplace
file_info:
mode: 0644
- src: ./.release/linux/package/etc/openbao/openbao.hcl
dst: /etc/openbao/openbao.hcl
type: config|noreplace
file_info:
mode: 0644
- src: ./.release/linux/package/usr/lib/systemd/system/openbao.service
dst: /usr/lib/systemd/system/openbao.service
type: config|noreplace
file_info:
mode: 0644
scripts:
preinstall: ".release/linux/preinst"
postinstall: ".release/linux/postinst"
postremove: ".release/linux/postrm"
overrides:
deb:
dependencies:
- openssl
rpm:
dependencies:
- openssl
archlinux:
dependencies:
- openssl
deb:
signature:
key_file: "{{ .Env.GPG_KEY_FILE }}"
rpm:
signature:
key_file: "{{ .Env.GPG_KEY_FILE }}"
checksum:
disable: true
changelog:
disable: true
archives:
- format_overrides:
- formats: tar.gz
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
files:
- "LICENSE"
- "README.md"
- "CHANGELOG.md"
builds_info:
group: root
owner: root
mode: 0755
# format is `time.RFC3339Nano`
mtime: 2008-01-02T15:04:05Z
sboms:
- id: archive
artifacts: archive
- id: package
artifacts: package
signs:
- id: cosign
artifacts: all
cmd: cosign
signature: "${artifact}.sigstore.json"
args:
- "sign-blob"
- "--bundle=${signature}" # needed on cosign 3.0.0+
- "${artifact}"
- "--yes" # needed on cosign 2.0.0+
- id: gpg
artifacts: all
signature: "${artifact}.gpgsig"
cmd: gpg
stdin: "{{ .Env.GPG_PASSWORD }}"
args:
- "--batch"
- "--default-key={{ .Env.GPG_FINGERPRINT }}"
- "--output=${signature}"
- "--detach-sign"
- "${artifact}"