-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.goreleaser.yml
87 lines (87 loc) · 2.34 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
87
project_name: git-pipe
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 5
- 6
- 7
flags:
- -trimpath
goos:
- linux
- darwin
- windows
main: ./cmd/git-pipe
nfpms:
- file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
Linux: linux
homepage: https://github.com/reddec/git-pipe
maintainer: Baryshnikov Aleksandr <[email protected]>
description: Watch and run git repositories with docker or docker-compose setup
license: Mozilla Public License Version 2.0
contents:
- src: build/git-pipe.1.gz
dst: /usr/local/share/man/man1/git-pipe.1.gz
formats:
- deb
dependencies:
- git
recommends:
- openssl
- openssh-client
suggests:
- docker-compose
- docker.io
dockers:
- dockerfile: Dockerfile
image_templates:
- "reddec/{{ .ProjectName }}:{{ .Tag }}"
- "reddec/{{ .ProjectName }}:v{{ .Major }}"
- "reddec/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}"
- "reddec/{{ .ProjectName }}:latest"
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}}"
- dockerfile: Dockerfile.light
image_templates:
- "reddec/{{ .ProjectName }}:{{ .Tag }}-light"
- "reddec/{{ .ProjectName }}:v{{ .Major }}-light"
- "reddec/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}-light"
- "reddec/{{ .ProjectName }}:light"
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}}"
archives:
- files:
- LICENSE
- README.md
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^doc:'
- '^test:'
- '^build:'