代码拉取完成,页面将自动刷新
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
main: ./cmd/tc_exporter
ldflags:
- "-w -s"
- "-X main.Branch={{ .Branch }}"
- "-X main.Revision={{ .Commit }}"
- "-X main.Version={{ .Tag }}"
- "-X main.Date={{ .Date }}"
archives:
- id: arch
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
- package_name: "tc-exporter"
section: "default"
priority: "extra"
maintainer: "Francis Begyn <francis@begyn.be>"
description: |
tc_exporter is a Prometheus exporter that aims to expose tc data.
homepage: "https://github.com/fbegyn/tc_exporter"
license: "MIT"
bindir: /usr/local/bin
contents:
- src: ./tc_exporter.service
dst: /etc/systemd/system/tc_exporter.service
- src: ./config.toml
dst: /etc/tc_exporter/config.toml
type: config|noreplace
scripts:
postinstall: ./scripts/postinstall.sh
preremove: ./scripts/preremove.sh
postremove: ./scripts/postremove.sh
formats:
- apk
- deb
- rpm
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。