feat(k8s): adding kubernetes support #12
259
.goreleaser.yaml
259
.goreleaser.yaml
|
@ -1,37 +1,37 @@
|
||||||
project_name: bouncer
|
project_name: bouncer
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- 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:
|
||||||
- -s
|
- -s
|
||||||
- -w
|
- -w
|
||||||
- -X 'main.GitRef={{ .Commit }}'
|
- -X 'main.GitRef={{ .Commit }}'
|
||||||
- -X 'main.ProjectVersion={{ .Version }}'
|
- -X 'main.ProjectVersion={{ .Version }}'
|
||||||
- -X 'main.BuildDate={{ .Date }}'
|
- -X 'main.BuildDate={{ .Date }}'
|
||||||
- -X 'main.DefaultConfigPath=/etc/bouncer/config.yml'
|
- -X 'main.DefaultConfigPath=/etc/bouncer/config.yml'
|
||||||
gcflags:
|
gcflags:
|
||||||
- -trimpath="${PWD}"
|
- -trimpath="${PWD}"
|
||||||
asmflags:
|
asmflags:
|
||||||
- -trimpath="${PWD}"
|
- -trimpath="${PWD}"
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
- "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:
|
||||||
- README.md
|
- README.md
|
||||||
- misc/packaging/common/config.yml
|
- misc/packaging/common/config.yml
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
snapshot:
|
snapshot:
|
||||||
|
@ -40,100 +40,109 @@ changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
filters:
|
filters:
|
||||||
exclude:
|
exclude:
|
||||||
- '^docs:'
|
- '^docs:'
|
||||||
- '^test:'
|
- '^test:'
|
||||||
nfpms:
|
nfpms:
|
||||||
- id: bouncer-bin
|
- id: bouncer-bin
|
||||||
builds:
|
builds:
|
||||||
- "bouncer"
|
- "bouncer"
|
||||||
package_name: bouncer-bin
|
package_name: bouncer-bin
|
||||||
homepage: https://forge.cadoles.com/Cadoles/bouncer
|
homepage: https://forge.cadoles.com/Cadoles/bouncer
|
||||||
maintainer: Cadoles <contact@cadoles.com>
|
maintainer: Cadoles <contact@cadoles.com>
|
||||||
description: |-
|
description: |-
|
||||||
reverse proxy server with dynamic queuing management - binaries
|
reverse proxy server with dynamic queuing management - binaries
|
||||||
license: AGPL-3.0
|
license: AGPL-3.0
|
||||||
formats:
|
formats:
|
||||||
- apk
|
- apk
|
||||||
- deb
|
- deb
|
||||||
- rpm
|
- rpm
|
||||||
contents:
|
- archlinux
|
||||||
- src: misc/packaging/common/config.yml
|
contents:
|
||||||
dst: /etc/bouncer/config.yml
|
- src: misc/packaging/common/config.yml
|
||||||
type: config
|
dst: /etc/bouncer/config.yml
|
||||||
- src: layers
|
type: config
|
||||||
dst: /etc/bouncer/layers
|
- src: layers
|
||||||
type: config
|
dst: /etc/bouncer/layers
|
||||||
- id: bouncer-admin
|
type: config
|
||||||
meta: true
|
- id: bouncer-admin
|
||||||
package_name: bouncer-admin
|
meta: true
|
||||||
homepage: https://forge.cadoles.com/Cadoles/bouncer
|
package_name: bouncer-admin
|
||||||
maintainer: Cadoles <contact@cadoles.com>
|
homepage: https://forge.cadoles.com/Cadoles/bouncer
|
||||||
dependencies:
|
maintainer: Cadoles <contact@cadoles.com>
|
||||||
- bouncer-bin
|
dependencies:
|
||||||
description: |-
|
- bouncer-bin
|
||||||
reverse proxy server with dynamic queuing management - administration service
|
description: |-
|
||||||
license: AGPL-3.0
|
reverse proxy server with dynamic queuing management - administration service
|
||||||
formats:
|
license: AGPL-3.0
|
||||||
- apk
|
formats:
|
||||||
- deb
|
- apk
|
||||||
- rpm
|
- deb
|
||||||
contents:
|
- rpm
|
||||||
- src: misc/packaging/systemd/bouncer-admin.systemd.service
|
- archlinux
|
||||||
dst: /usr/lib/systemd/system/bouncer-admin.service
|
contents:
|
||||||
packager: deb
|
- 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: deb
|
||||||
packager: rpm
|
- src: misc/packaging/systemd/bouncer-admin.systemd.service
|
||||||
- src: misc/packaging/openrc/bouncer-admin.openrc.sh
|
dst: /usr/lib/systemd/system/bouncer-admin.service
|
||||||
dst: /etc/init.d/bouncer-admin
|
packager: rpm
|
||||||
file_info:
|
- src: misc/packaging/systemd/bouncer-admin.systemd.service
|
||||||
mode: 0755
|
dst: /usr/lib/systemd/system/bouncer-admin.service
|
||||||
packager: apk
|
packager: archlinux
|
||||||
- dst: /usr/share/bouncer
|
- src: misc/packaging/openrc/bouncer-admin.openrc.sh
|
||||||
type: dir
|
dst: /etc/init.d/bouncer-admin
|
||||||
file_info:
|
file_info:
|
||||||
mode: 0700
|
mode: 0755
|
||||||
- dst: /var/log/bouncer
|
packager: apk
|
||||||
type: dir
|
- dst: /usr/share/bouncer
|
||||||
file_info:
|
type: dir
|
||||||
mode: 0700
|
file_info:
|
||||||
packager: apk
|
mode: 0700
|
||||||
scripts:
|
- dst: /var/log/bouncer
|
||||||
postinstall: "misc/packaging/common/postinstall-bouncer-admin.sh"
|
type: dir
|
||||||
- id: bouncer-proxy
|
file_info:
|
||||||
meta: true
|
mode: 0700
|
||||||
dependencies:
|
packager: apk
|
||||||
- bouncer-bin
|
scripts:
|
||||||
package_name: bouncer-proxy
|
postinstall: "misc/packaging/common/postinstall-bouncer-admin.sh"
|
||||||
homepage: https://forge.cadoles.com/Cadoles/bouncer
|
- id: bouncer-proxy
|
||||||
maintainer: Cadoles <contact@cadoles.com>
|
meta: true
|
||||||
description: |-
|
dependencies:
|
||||||
reverse proxy server with dynamic queuing management - proxy service
|
- bouncer-bin
|
||||||
license: AGPL-3.0
|
package_name: bouncer-proxy
|
||||||
formats:
|
homepage: https://forge.cadoles.com/Cadoles/bouncer
|
||||||
- apk
|
maintainer: Cadoles <contact@cadoles.com>
|
||||||
- deb
|
description: |-
|
||||||
- rpm
|
reverse proxy server with dynamic queuing management - proxy service
|
||||||
contents:
|
license: AGPL-3.0
|
||||||
- src: misc/packaging/systemd/bouncer-proxy.systemd.service
|
formats:
|
||||||
dst: /usr/lib/systemd/system/bouncer-proxy.service
|
- apk
|
||||||
packager: deb
|
- deb
|
||||||
- src: misc/packaging/systemd/bouncer-proxy.systemd.service
|
- rpm
|
||||||
dst: /usr/lib/systemd/system/bouncer-proxy.service
|
- archlinux
|
||||||
packager: rpm
|
contents:
|
||||||
- src: misc/packaging/openrc/bouncer-proxy.openrc.sh
|
- src: misc/packaging/systemd/bouncer-proxy.systemd.service
|
||||||
dst: /etc/init.d/bouncer-proxy
|
dst: /usr/lib/systemd/system/bouncer-proxy.service
|
||||||
file_info:
|
packager: deb
|
||||||
mode: 0755
|
- src: misc/packaging/systemd/bouncer-proxy.systemd.service
|
||||||
packager: apk
|
dst: /usr/lib/systemd/system/bouncer-proxy.service
|
||||||
- dst: /usr/share/bouncer
|
packager: rpm
|
||||||
type: dir
|
- src: misc/packaging/systemd/bouncer-proxy.systemd.service
|
||||||
file_info:
|
dst: /usr/lib/systemd/system/bouncer-proxy.service
|
||||||
mode: 0700
|
packager: archlinux
|
||||||
- dst: /var/log/bouncer
|
- src: misc/packaging/openrc/bouncer-proxy.openrc.sh
|
||||||
type: dir
|
dst: /etc/init.d/bouncer-proxy
|
||||||
file_info:
|
file_info:
|
||||||
mode: 0700
|
mode: 0755
|
||||||
packager: apk
|
packager: apk
|
||||||
scripts:
|
- dst: /usr/share/bouncer
|
||||||
postinstall: "misc/packaging/common/postinstall-bouncer-proxy.sh"
|
type: dir
|
||||||
|
file_info:
|
||||||
|
mode: 0700
|
||||||
|
- dst: /var/log/bouncer
|
||||||
|
type: dir
|
||||||
|
file_info:
|
||||||
|
mode: 0700
|
||||||
|
packager: apk
|
||||||
|
scripts:
|
||||||
|
postinstall: "misc/packaging/common/postinstall-bouncer-proxy.sh"
|
||||||
|
|
Loading…
Reference in New Issue