Skip to content

Commit 1ed1d2b

Browse files
committed
add goreleaser config
1 parent c6e9a73 commit 1ed1d2b

File tree

5 files changed

+46
-1
lines changed

5 files changed

+46
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.jks
22
*.pem
33
.vscode
4-
cert-fetcher
4+
cert-fetcher
5+
dist

.goreleaser.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
before:
4+
hooks:
5+
# you may remove this if you don't use vgo
6+
- go mod download
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
11+
goos:
12+
- linux
13+
- darwin
14+
- windows
15+
goarch:
16+
- 386
17+
- amd64
18+
- arm
19+
- arm64
20+
hooks:
21+
post: ./goreleaser/upx.sh
22+
archive:
23+
replacements:
24+
darwin: Darwin
25+
linux: Linux
26+
windows: Windows
27+
386: i386
28+
amd64: x86_64
29+
checksum:
30+
name_template: 'checksums.txt'
31+
snapshot:
32+
name_template: "{{ .Tag }}-next"
33+
changelog:
34+
sort: asc
35+
filters:
36+
exclude:
37+
- '^docs:'
38+
- '^test:'

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/bakito/cert-fetcher
33
require (
44
github.com/google/pprof v0.0.0-20190109223431-e84dfd68c163 // indirect
55
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6 // indirect
6+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
67
github.com/mitchellh/go-homedir v1.0.0
78
github.com/pavel-v-chernykh/keystore-go v2.1.0+incompatible
89
github.com/spf13/cobra v0.0.3

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo
77
github.com/google/pprof v0.0.0-20190109223431-e84dfd68c163/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
88
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
99
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
10+
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
11+
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
1012
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
1113
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
1214
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=

goreleaser/upx.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
upx -q dist/*/*

0 commit comments

Comments
 (0)