-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
92 lines (92 loc) · 2.96 KB
/
.goreleaser.yaml
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
88
89
90
91
92
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# cSpell: disable
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X
main.date={{ .CommitDate }} -X main.builtBy=goreleaser
binary: krmfnsops
id: krmfnsops
archives:
- format: binary
name_template: '{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "SHA256SUMS"
snapshot:
name_template: "{{ incpatch .Version }}-devel"
changelog:
sort: asc
filters:
exclude:
- "^docs"
- "^test"
- "^ci"
- "^refactor"
- Merge pull request
- Merge branch
- go mod tidy
nfpms:
- formats: [apk]
license: Apache 2.0
package_name: krmfnsops
file_name_template: >-
{{ .PackageName }}-
{{- .Version }}.
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
{{- if .Mips }}_{{ .Mips }}{{ end }}
maintainer: Kaweezle <kaweezle-devel@kaweezle.com>
description: KRM function (Kustomize) to decrypt SOPS encoded resources
homepage: https://github.com/kaweezle/krmfnsops
bindir: /usr/bin
apk:
signature:
key_file: gpg_key.asc
key_name: kaweezle-devel@kaweezle.com-c9d89864.rsa.pub
release:
extra_files:
- glob: ./kaweezle-devel@kaweezle.com-c9d89864.rsa.pub
dockers:
- image_templates:
- "ghcr.io/kaweezle/krmfnsops:latest"
- "ghcr.io/kaweezle/krmfnsops:{{ .Version }}"
dockerfile: Dockerfile
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/kaweezle/krmfnsops
- --label=org.opencontainers.image.source=https://github.com/kaweezle/krmfnsops
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
scoop:
bucket:
owner: kaweezle
name: scoop-bucket
branch: main
token: "{{ .Env.SCOOP_BUCKET_GITHUB_TOKEN }}"
commit_author:
name: Antoine Martin
email: antoine@openance.com
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: https://github.com/kaweezle/krmfnsops
description: "Kustomize SOPS KRM function"
license: Apache-2.0