-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
107 lines (107 loc) · 2.95 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# cSpell: disable
env:
- KUBERNETES_VERSION=1.29.3
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- "386"
- amd64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X
main.date={{ .CommitDate }} -X main.builtBy=pterm -X
k8s.KubernetesVersion={{ .Env.KUBERNETES_VERSION }}
binary: iknite
id: iknite
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
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: iknite
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: Start Kubernetes in Alpine Linux
homepage: https://github.com/kaweezle/iknite
dependencies:
- openrc
- ip6tables
- containerd
- kubelet
- kubeadm
- kubectl
- cni-plugins
- cni-plugin-flannel
- git
- openssh
- util-linux-misc
- buildkit
- buildctl
- nerdctl
bindir: /sbin
contents:
- src: apk/crictl.sh
dst: /etc/profile.d/crictl.sh
- src: apk/iknite.d/kustomization.yaml
dst: /etc/iknite.d/kustomization.yaml
- src: apk/iknite.d/base/kustomization.yaml
dst: /etc/iknite.d/base/kustomization.yaml
- src: apk/iknite.d/base/metallb-addresspool.yaml
dst: /etc/iknite.d/base/metallb-addresspool.yaml
- src: apk/iknite.d/base/kube-flannel.yaml
dst: /etc/iknite.d/base/kube-flannel.yaml
- src: apk/init.d/iknite
dst: /etc/init.d/iknite
- src: apk/conf.d/iknite
dst: /etc/conf.d/iknite
- src: apk/flannel/10-flannel.conflist
dst: /etc/cni/net.d/10-flannel.conflist
- src: apk/flannel/subnet.env
dst: /lib/iknite/flannel/subnet.env
- src: apk/buildkit/buildkitd.toml
dst: /etc/buildkit/buildkitd.toml
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