diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2db09142..47e70c99 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -407,6 +407,58 @@ universal_binaries: ids: - unpoller-mac +brews: + - name: unpoller + ids: + - unpoller + - unpoller-linux-arm + - unpoller-mac + tap: + owner: golift + name: homebrew-mugs + branch: master + token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + commit_author: + name: goreleaserbot + email: bot@goreleaser.com + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + folder: Formula + # enable the line below only for testing locally + # skip_upload: true + homepage: https://unpoller.com/ + description: "Polls a UniFi controller, exports metrics to InfluxDB, Prometheus and Datadog" + caveats: "Edit the config file at #{etc}/unpoller/up.conf then start unpoller with brew services start unpoller ~ log file: #{var}/log/unpoller.log The manual explains the config file options: man unpoller" + conflicts: + - unifi-poller + license: MIT + plist: | + + + + + Label + #{plist_name} + ProgramArguments + + #{bin}/unpoller + --config + #{etc}/unpoller/up.conf + + RunAtLoad + + KeepAlive + + StandardErrorPath + #{var}/log/unpoller.log + StandardOutPath + #{var}/log/unpoller.log + + + url_template: "https://github.com/unpoller/unpoller/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + test: | + assert_match "unpoller v#{version}", shell_output("#{bin}/unpoller -v 2>&1", 2) + + publishers: - name: "packagecloud-publisher" ids: