feat(pkg): adding archlinux package to gorelease

This commit is contained in:
Philippe Caseiro 2024-02-05 14:34:59 +01:00 committed by William Petit
parent 87354ef0d4
commit 53a0d26a47
1 changed files with 134 additions and 125 deletions

View File

@ -4,7 +4,7 @@ before:
- go mod tidy - go mod tidy
- go generate ./... - go generate ./...
builds: builds:
- id: bouncer - id: bouncer
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
ldflags: ldflags:
@ -26,7 +26,7 @@ builds:
- "386" - "386"
main: ./cmd/bouncer main: ./cmd/bouncer
archives: archives:
- id: bouncer - id: bouncer
builds: ["bouncer"] builds: ["bouncer"]
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
files: files:
@ -43,7 +43,7 @@ changelog:
- '^docs:' - '^docs:'
- '^test:' - '^test:'
nfpms: nfpms:
- id: bouncer-bin - id: bouncer-bin
builds: builds:
- "bouncer" - "bouncer"
package_name: bouncer-bin package_name: bouncer-bin
@ -56,6 +56,7 @@ nfpms:
- apk - apk
- deb - deb
- rpm - rpm
- archlinux
contents: contents:
- src: misc/packaging/common/config.yml - src: misc/packaging/common/config.yml
dst: /etc/bouncer/config.yml dst: /etc/bouncer/config.yml
@ -63,7 +64,7 @@ nfpms:
- src: layers - src: layers
dst: /etc/bouncer/layers dst: /etc/bouncer/layers
type: config type: config
- id: bouncer-admin - id: bouncer-admin
meta: true meta: true
package_name: bouncer-admin package_name: bouncer-admin
homepage: https://forge.cadoles.com/Cadoles/bouncer homepage: https://forge.cadoles.com/Cadoles/bouncer
@ -77,6 +78,7 @@ nfpms:
- apk - apk
- deb - deb
- rpm - rpm
- archlinux
contents: contents:
- src: misc/packaging/systemd/bouncer-admin.systemd.service - src: misc/packaging/systemd/bouncer-admin.systemd.service
dst: /usr/lib/systemd/system/bouncer-admin.service dst: /usr/lib/systemd/system/bouncer-admin.service
@ -84,6 +86,9 @@ nfpms:
- src: misc/packaging/systemd/bouncer-admin.systemd.service - src: misc/packaging/systemd/bouncer-admin.systemd.service
dst: /usr/lib/systemd/system/bouncer-admin.service dst: /usr/lib/systemd/system/bouncer-admin.service
packager: rpm packager: rpm
- src: misc/packaging/systemd/bouncer-admin.systemd.service
dst: /usr/lib/systemd/system/bouncer-admin.service
packager: archlinux
- src: misc/packaging/openrc/bouncer-admin.openrc.sh - src: misc/packaging/openrc/bouncer-admin.openrc.sh
dst: /etc/init.d/bouncer-admin dst: /etc/init.d/bouncer-admin
file_info: file_info:
@ -100,7 +105,7 @@ nfpms:
packager: apk packager: apk
scripts: scripts:
postinstall: "misc/packaging/common/postinstall-bouncer-admin.sh" postinstall: "misc/packaging/common/postinstall-bouncer-admin.sh"
- id: bouncer-proxy - id: bouncer-proxy
meta: true meta: true
dependencies: dependencies:
- bouncer-bin - bouncer-bin
@ -114,6 +119,7 @@ nfpms:
- apk - apk
- deb - deb
- rpm - rpm
- archlinux
contents: contents:
- src: misc/packaging/systemd/bouncer-proxy.systemd.service - src: misc/packaging/systemd/bouncer-proxy.systemd.service
dst: /usr/lib/systemd/system/bouncer-proxy.service dst: /usr/lib/systemd/system/bouncer-proxy.service
@ -121,6 +127,9 @@ nfpms:
- src: misc/packaging/systemd/bouncer-proxy.systemd.service - src: misc/packaging/systemd/bouncer-proxy.systemd.service
dst: /usr/lib/systemd/system/bouncer-proxy.service dst: /usr/lib/systemd/system/bouncer-proxy.service
packager: rpm packager: rpm
- src: misc/packaging/systemd/bouncer-proxy.systemd.service
dst: /usr/lib/systemd/system/bouncer-proxy.service
packager: archlinux
- src: misc/packaging/openrc/bouncer-proxy.openrc.sh - src: misc/packaging/openrc/bouncer-proxy.openrc.sh
dst: /etc/init.d/bouncer-proxy dst: /etc/init.d/bouncer-proxy
file_info: file_info: