Skip to content

Commit

Permalink
chore: add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Dec 26, 2021
1 parent 0979b13 commit 5c3bf25
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: goreleaser

on:
pull_request:
push:

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

dist/
32 changes: 32 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
main: ./cmd
binary: pvpc
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
44 changes: 44 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
module github.com/mrmarble/pvpc-telegraf-plugin

go 1.17

require (
collectd.org v0.5.0 // indirect
github.com/BurntSushi/toml v0.4.1 // indirect
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
github.com/antchfx/jsonquery v1.1.4 // indirect
github.com/antchfx/xmlquery v1.3.6 // indirect
github.com/antchfx/xpath v1.1.11 // indirect
github.com/benbjohnson/clock v1.1.0 // indirect
github.com/caio/go-tdigest v3.1.0+incompatible // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/doclambda/protobufquery v0.0.0-20210317203640-88ffabe06a60 // indirect
github.com/fatih/color v1.10.0 // indirect
github.com/go-logfmt/logfmt v0.5.0 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/influxdata/telegraf v1.21.1 // indirect
github.com/influxdata/toml v0.0.0-20190415235208-270119a8ce65 // indirect
github.com/jhump/protoreflect v1.8.3-0.20210616212123-6cc1efa697ca // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/naoina/go-stringutil v0.1.0 // indirect
github.com/philhofer/fwd v1.1.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.31.1 // indirect
github.com/prometheus/prometheus v1.8.2-0.20210430082741-2a4b8e12bbf2 // indirect
github.com/tidwall/gjson v1.10.2 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tinylib/msgp v1.1.6 // indirect
github.com/vjeantet/grok v1.0.1 // indirect
github.com/wavefronthq/wavefront-sdk-go v0.9.9 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
golang.org/x/net v0.0.0-20211005215030-d2e5035098b3 // indirect
golang.org/x/sys v0.0.0-20211013075003-97ac67df715c // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/genproto v0.0.0-20210827211047-25e5f791fe06 // indirect
google.golang.org/protobuf v1.27.1 // indirect
)

0 comments on commit 5c3bf25

Please sign in to comment.