Skip to content

Commit ff4f766

Browse files
committed
Update to latest goreleaser
Fix deprecated directives, adjust for go mod. We're at goreleaser 0.112.2.
1 parent 143e4a0 commit ff4f766

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.goreleaser.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ builds:
33
ldflags: -s -w -X github.com/bpineau/katafygio/cmd.version={{.Version}}
44
env:
55
- CGO_ENABLED=0
6+
- GO111MODULE=on
67
goos:
78
- darwin
89
- linux
@@ -15,14 +16,19 @@ builds:
1516
hooks:
1617
post: make man
1718

19+
before:
20+
hooks:
21+
- go mod download
22+
1823
release:
1924
# don't autopublish
2025
draft: true
2126

2227
sign:
2328
artifacts: checksum
2429

25-
archive:
30+
archives:
31+
- id: katafygio
2632
format: binary
2733

2834
changelog:
@@ -31,15 +37,16 @@ changelog:
3137
- Merge
3238

3339
dockers:
34-
- image: bpineau/katafygio
40+
- image_templates:
41+
- "bpineau/katafygio:latest"
42+
- "bpineau/katafygio:{{ .Tag }}"
3543
goos: linux
3644
goarch: amd64
3745
dockerfile: assets/Dockerfile.goreleaser
38-
tag_templates:
39-
- '{{ .Tag }}'
40-
- latest
46+
skip_push: true
4147

42-
nfpm:
48+
nfpms:
49+
-
4350
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
4451
homepage: https://github.com/bpineau/katafygio
4552
description: Discover and continuously backup Kubernetes objets as yaml files in git

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8Nz
1919
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
2020
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
2121
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
22+
github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk=
2223
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
2324
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2425
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -127,6 +128,7 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R
127128
github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
128129
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
129130
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
131+
github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
130132
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
131133
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
132134
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=

0 commit comments

Comments
 (0)