version: 2 project_name: beszel before: hooks: - go mod tidy builds: - id: beszel binary: beszel main: cmd/hub/hub.go env: - CGO_ENABLED=0 goos: - linux - darwin goarch: - amd64 - arm64 - arm - id: beszel-agent binary: beszel-agent main: cmd/agent/agent.go env: - CGO_ENABLED=0 goos: - linux - darwin - freebsd - windows goarch: - amd64 - arm64 - arm - mips64 - riscv64 ignore: - goos: freebsd goarch: arm - goos: windows goarch: arm - goos: darwin goarch: riscv64 - goos: windows goarch: riscv64 archives: - id: beszel format: tar.gz builds: - beszel-agent name_template: >- {{ .Binary }}_ {{- .Os }}_ {{- .Arch }} format_overrides: - goos: windows format: zip - id: beszel-agent format: tar.gz builds: - beszel name_template: >- {{ .Binary }}_ {{- .Os }}_ {{- .Arch }} nfpms: - id: beszel-agent package_name: beszel-agent description: |- Agent for Beszel Beszel is a lightweight server monitoring platform that includes Docker statistics, historical data, and alert functions. It has a friendly web interface, simple configuration, and is ready to use out of the box. It supports automatic backup, multi-user, OAuth authentication, and API access. maintainer: henrygd section: net builds: - beszel-agent formats: - deb # don't think this is needed with CGO_ENABLED=0 # dependencies: # - libc6 contents: - src: ../supplemental/debian/beszel-agent.service dst: lib/systemd/system/beszel-agent.service packager: deb - src: ../supplemental/debian/copyright dst: usr/share/doc/beszel-agent/copyright packager: deb - src: ../supplemental/debian/lintian-overrides dst: usr/share/lintian/overrides/beszel-agent packager: deb scripts: postinstall: ../supplemental/debian/postinstall.sh preremove: ../supplemental/debian/prerm.sh postremove: ../supplemental/debian/postrm.sh deb: predepends: - adduser - debconf scripts: templates: ../supplemental/debian/templates # Currently broken due to a bug in goreleaser # https://github.com/goreleaser/goreleaser/issues/5487 #config: ../supplemental/debian/config.sh release: draft: true changelog: disable: true sort: asc filters: exclude: - '^docs:' - '^test:'