-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser-dev.yaml
More file actions
93 lines (93 loc) · 2.99 KB
/
Copy path.goreleaser-dev.yaml
File metadata and controls
93 lines (93 loc) · 2.99 KB
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
93
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# cSpell: words bindir nfpms trimpath lunwind linkmode extldflags
version: 2
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=1
# - CC=x86_64-alpine-linux-musl-gcc
- CC=zig cc -target {{ if (eq .Arch "amd64") }}x86_64-linux-musl{{ else }}aarch64-linux-musl{{ end }} -lunwind
goos:
- linux
# We limit on these architectures because these are the ones for which KCL is provided.
goarch:
- amd64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
tags:
- musl
ldflags:
- -s -w -X main.KarmafunVersion={{.Version}} -X main.Commit={{.Commit}} -X
main.BuildDate={{ .CommitDate }} -X main.BuiltBy=goreleaser
binary: karmafun
id: karmafun_musl
archives:
- formats: [binary]
id: musl
name_template: '{{ .Binary }}_musl_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
ids:
- karmafun_musl
checksum:
name_template: "SHA256SUMS"
snapshot:
version_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: karmafun
ids:
- karmafun_musl
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: Karmafun <karmafun-devel@karmafun.dev>
description: KRM function (Kustomize) to decrypt SOPS encoded resources
homepage: https://github.com/karmafun/karmafun
bindir: /usr/bin
apk:
signature:
key_file: kaweezle-devel@kaweezle.com-c9d89864.rsa
key_name: kaweezle-devel@kaweezle.com-c9d89864.rsa.pub
release:
extra_files:
- glob: ./kaweezle-devel@kaweezle.com-c9d89864.rsa.pub
# dockers_v2:
# - images:
# - "ghcr.io/karmafun/karmafun"
# tags:
# - latest
# - "{{ .Version }}"
# ids:
# - karmafun_musl
# platforms:
# - linux/amd64
# dockerfile: Dockerfile
# labels:
# "org.opencontainers.image.title": "{{ .ProjectName }}"
# "org.opencontainers.image.description": "{{ .ProjectName }}"
# "org.opencontainers.image.url": "https://github.com/karmafun/karmafun"
# "org.opencontainers.image.source": "https://github.com/karmafun/karmafun"
# "org.opencontainers.image.version": "{{ .Version }}"
# "org.opencontainers.image.created": '{{ time "2006-01-02T15:04:05Z07:00" }}'
# "org.opencontainers.image.revision": "{{ .FullCommit }}"
# "org.opencontainers.image.licenses": "Apache-2.0"