-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
78 lines (70 loc) · 1.94 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
env:
- CGO_ENABLED=0
before:
hooks:
- make test
- go generate ./...
- go mod tidy
- go mod download
builds:
- id: jwt-auth-registry
main: ./cmd/jwt-auth-registry
binary: jwt-auth-registry
flags:
- -tags=release
- -buildmode=default
- -trimpath
- -v
mod_timestamp: '{{ .CommitTimestamp }}'
goarm: [5, 7]
goos: ['linux', 'darwin', 'windows']
goarch: ['amd64', 'arm', 'arm64']
archives:
checksum:
algorithm: sha256
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- image_templates:
- "ghcr.io/na4ma4/jwt-auth-registry:{{ .Tag }}"
- "ghcr.io/na4ma4/jwt-auth-registry:{{ .Major }}"
- "ghcr.io/na4ma4/jwt-auth-registry:latest"
extra_files:
- "scripts/replace-links-in-ssl-certs.sh"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
nfpms:
-
id: jwt-auth-registry
package_name: jwt-auth-registry
file_name_template: "jwt-auth-registry_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
builds:
- jwt-auth-registry
homepage: https://github.com/na4ma4/jwt-auth-registry
maintainer: na4ma4 <na4ma4@users.noreply.github.com>
description: JWT-based Authentication Proxy
formats:
- apk
- deb
bindir: /usr/bin
contents:
- src: "systemd/jwt-auth-registry.service"
dst: "/lib/systemd/system/jwt-auth-registry.service"
overrides:
deb:
scripts:
preinstall: "nfpms/pre-install.sh"
postinstall: "nfpms/post-install.sh"
preremove: "nfpms/pre-remove.sh"
postremove: "nfpms/post-remove.sh"