Skip to content

Commit c1c6288

Browse files
authored
Merge pull request #13 from acend/feat/implement-goreleaser
Update go releaser
2 parents 4a3da5d + 4da7bf1 commit c1c6288

File tree

4 files changed

+36
-300
lines changed

4 files changed

+36
-300
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.idea
22
*.iml
33
prometheus-training-app
4+
5+
dist/

.goreleaser.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
9+
builds:
10+
- env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- linux
14+
- windows
15+
- darwin
16+
archives:
17+
- replacements:
18+
darwin: Darwin
19+
linux: Linux
20+
windows: Windows
21+
386: i386
22+
amd64: x86_64
23+
checksum:
24+
name_template: 'checksums.txt'
25+
snapshot:
26+
name_template: "{{ incpatch .Version }}-next"
27+
changelog:
28+
sort: asc
29+
filters:
30+
exclude:
31+
- '^docs:'
32+
- '^test:'

go.mod

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ module prometheus-training-app
33
go 1.15
44

55
require (
6-
github.com/bketelsen/crypt v0.0.4 // indirect
7-
github.com/mitchellh/go-homedir v1.1.0
86
github.com/prometheus/client_golang v1.12.1
9-
github.com/smartystreets/goconvey v1.6.4 // indirect
107
github.com/spf13/cobra v1.3.0
11-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
12-
github.com/spf13/viper v1.10.1
13-
gopkg.in/yaml.v2 v2.4.0 // indirect
148
)

0 commit comments

Comments
 (0)