-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
.goreleaser.yaml
110 lines (101 loc) · 2.75 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
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
version: 2
before:
hooks:
- rm -rf 3rdpartylicenses
- go run github.com/google/go-licenses@latest save . --save_path=3rdpartylicenses
builds:
- id: "openvpn-auth-oauth2"
binary: openvpn-auth-oauth2
goos:
- linux
- freebsd
- openbsd
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
archives:
- id: openvpn-auth-oauth2
builds:
- openvpn-auth-oauth2
format: tar.xz
files:
- LICENSE.txt
- 3rdpartylicenses/**/*
nfpms:
- id: openvpn-auth-oauth2
builds:
- openvpn-auth-oauth2
homepage: https://github.com/jkroepke/openvpn-auth-oauth2
maintainer: Jan-Otto Kröpke <github@jkroepke.de>
section: net
description: |
openvpn-auth-oauth2 is a management client for OpenVPN that handles the authentication of connecting users against OIDC providers like Azure AD or Keycloak.
license: MIT License
formats:
- deb
- rpm
provides:
- openvpn-auth-oauth2
recommends:
- openvpn
contents:
- src: packaging/usr/lib/sysusers.d/
dst: /usr/lib/sysusers.d/
- src: packaging/usr/lib/systemd/system/
dst: /usr/lib/systemd/system/
- src: packaging/etc/apparmor.d/
dst: /etc/apparmor.d/
- src: packaging/etc/sysconfig/openvpn-auth-oauth2
file_info:
mode: 0640
dst: /etc/sysconfig/openvpn-auth-oauth2
type: "config|noreplace"
- dst: /etc/openvpn-auth-oauth2/
type: dir
file_info:
owner: root
group: openvpn-auth-oauth2
mode: 0750
- src: packaging/etc/openvpn-auth-oauth2/config.yaml
dst: /etc/openvpn-auth-oauth2/config.yaml
type: "config|noreplace"
file_info:
owner: root
group: openvpn-auth-oauth2
mode: 0640
- src: 3rdpartylicenses/
dst: /usr/share/doc/openvpn-auth-oauth2/3rdpartylicenses/
type: tree
file_info:
owner: root
group: root
mode: 0644
scripts:
preinstall: "packaging/scripts/preinst.sh"
postinstall: "packaging/scripts/postinst.sh"
preremove: "packaging/scripts/preremove.sh"
postremove: "packaging/scripts/postremove.sh"
rpm:
compression: xz
signature:
key_file: "{{ .Env.GPG_KEY_PATH }}"
deb:
#compression: xz
signature:
key_file: "{{ .Env.GPG_KEY_PATH }}"
report_sizes: true
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"
gomod:
proxy: true
release:
prerelease: auto
changelog:
use: github-native