-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.goreleaser.yml
76 lines (75 loc) · 1.99 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
project_name: mittnite
before:
hooks:
- go mod download
- go test ./...
builds:
- &defaultBuild
id: mittnite
binary: mittnite
main: main.go
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/mittwald/mittnite/cmd.Version={{ .Version }} -X github.com/mittwald/mittnite/cmd.Commit={{ .Commit }} -X github.com/mittwald/mittnite/cmd.BuiltAt={{ .Date }}
goos:
- darwin
- linux
goarch:
- amd64
- arm64
- <<: *defaultBuild
id: mittnitectl
binary: mittnitectl
main: ./cmd/mittnitectl
archives:
- name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "Linux" }}linux
{{- else if eq .Os "darwin" }}macos
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
files:
- LICENSE
nfpms:
- vendor: Mittwald CM Service
homepage: https://github.com/mittwald/mittnite
maintainer: Martin Helmich <[email protected]>
description: Smart and small init system for containers
license: Proprietary
formats:
- deb
- rpm
bindir: /usr/bin
contents:
- dst: /etc/mittnite.d
type: dir
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
-
image_templates:
- quay.io/mittwald/mittnite:v{{ .Major }}
- quay.io/mittwald/mittnite:v{{ .Major }}.{{ .Minor }}
- quay.io/mittwald/mittnite:{{ .Tag }}
- quay.io/mittwald/mittnite:stable
- quay.io/mittwald/mittnite:latest
- quay.io/mittwald/mittnite:v{{ .Major }}-alpine
- quay.io/mittwald/mittnite:v{{ .Major }}.{{ .Minor }}-alpine
- quay.io/mittwald/mittnite:{{ .Tag }}-alpine
- quay.io/mittwald/mittnite:stable-alpine
goos: linux
goarch: amd64
goarm: ''