forked from k1LoW/octocov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
86 lines (86 loc) · 2.36 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
before:
hooks:
- go mod download
- go mod tidy
builds:
-
id: octocov-darwin
ldflags:
- -s -w -X github.com/k1LoW/octocov.version={{.Version}} -X github.com/k1LoW/octocov.commit={{.FullCommit}} -X github.com/k1LoW/octocov.date={{.Date}} -X github.com/k1LoW/octocov/version.Version={{.Version}}
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
- arm64
-
id: octocov-linux
ldflags:
- -s -w -X github.com/k1LoW/octocov.version={{.Version}} -X github.com/k1LoW/octocov.commit={{.FullCommit}} -X github.com/k1LoW/octocov.date={{.Date}} -X github.com/k1LoW/octocov/version.Version={{.Version}}
- -linkmode external
- -extldflags '-static'
env:
- CGO_ENABLED=1
- CC=x86_64-linux-musl-cc # brew install FiloSottile/musl-cross/musl-cross
goos:
- linux
goarch:
- amd64
archives:
-
id: octocov-archive
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: darwin
format: zip
files:
- LICENSE
- CREDITS
- README.md
- CHANGELOG.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}-next"
changelog:
skip: true
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
-
goos: linux
goarch: amd64
image_templates:
- 'ghcr.io/k1low/octocov:v{{ .Version }}'
- 'ghcr.io/k1low/octocov:latest'
dockerfile: Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/k1LoW/octocov"
- "--platform=linux/amd64"
extra_files:
- scripts/entrypoint.sh
nfpms:
-
id: octocov-nfpms
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
builds:
- octocov-linux
homepage: https://github.com/k1LoW/octocov
maintainer: Ken'ichiro Oyama <[email protected]>
description: octocov is a toolkit for collecting code metrics.
license: MIT
formats:
- deb
- rpm
- apk
bindir: /usr/bin
epoch: 1