加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.goreleaser.yaml 1.70 KB
一键复制 编辑 原始数据 按行查看 历史
Francis Begyn 提交于 2023-08-31 12:47 . fix release workflows
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化