-
Notifications
You must be signed in to change notification settings - Fork 24
/
.goreleaser.yml
61 lines (61 loc) · 1.56 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: 2
project_name: cyclonus
release:
github:
owner: mattfenwick
name: Cyclonus
builds:
- id: cyclonus
goos:
- linux
- windows
- darwin
goarch:
- amd64
env:
- CGO_ENABLED=0
main: cmd/cyclonus/main.go
ldflags: -s -w
-X github.com/mattfenwick/cyclonus/pkg/cli.version={{.Version}}
-X github.com/mattfenwick/cyclonus/pkg/cli.gitSHA={{.Commit}}
-X github.com/mattfenwick/cyclonus/pkg/cli.buildTime={{.Date}}
-extldflags "-static"
flags: -tags netgo -installsuffix netgo
binary: "cyclonus"
hooks: {}
dockers:
-
goos: linux
goarch: amd64
goarm: ''
ids:
- cyclonus
image_templates:
- "mfenwick100/cyclonus:latest"
- "mfenwick100/cyclonus:{{ .Tag }}"
skip_push: false
dockerfile: cmd/cyclonus/Dockerfile
# build_flag_templates:
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.title={{.ProjectName}}"
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
# - "--label=org.opencontainers.image.version={{.Version}}"
# - "--pull"
# - "--platform=linux/arm64"
archives:
- id: cyclonus
builds:
- cyclonus
format: tar.gz
format_overrides:
- goos: windows
format: zip
wrap_in_directory: true
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- LICENCE*
- README*
- CHANGELOG*
checksum:
name_template: "cyclonus_{{ .RawVersion }}_checksums.txt"
algorithm: sha256