forked from jkroepke/openvpn-auth-oauth2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
65 lines (58 loc) · 1.68 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
builds:
- id: "openvpn-auth-oauth2"
binary: openvpn-auth-oauth2
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
- id: "openvpn-auth-oauth2.so"
binary: openvpn-auth-oauth2
main: ./pkg/plugin/
buildmode: c-shared
goos:
- linux
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=1
- >-
{{- if eq .Arch "amd64"}}CC=x86_64-linux-gnu-gcc{{- end }}
{{- if eq .Arch "arm64"}}CC=aarch64-linux-gnu-gcc{{- end }}
- >-
{{- if eq .Arch "amd64"}}CXX=x86_64-linux-gnu-g++{{- end }}
{{- if eq .Arch "arm64"}}CXX=aarch64-linux-gnu-g++{{- end }}
archives:
- id: openvpn-auth-oauth2
nfpms:
- id: openvpn-auth-oauth2
homepage: https://github.com/jkroepke/openvpn-auth-oauth2
maintainer: Jan-Otto Kröpke <github@jkroepke.de>
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
contents:
- src: packaging/openvpn-auth-oauth2.service
dst: /usr/lib/systemd/system/openvpn-auth-oauth2.service
- src: packaging/openvpn-auth-oauth2.sysconfig
dst: /etc/sysconfig/openvpn-auth-oauth2
type: "config|noreplace"
- src: packaging/config.yaml
dst: /usr/share/doc/openvpn-auth-oauth2/examples/auth-oauth2.yaml
report_sizes: true
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"
gomod:
proxy: true
release:
prerelease: auto
changelog:
use: github-native