-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
130 lines (128 loc) · 3.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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Make sure to check the documentation at https://goreleaser.com
---
version: 2
before:
hooks:
- go mod tidy
builds:
- binary: myks
env:
- CGO_ENABLED=0
targets:
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
- windows_amd64
archives:
- format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- docs/*
checksum:
name_template: "checksums.txt"
signs:
- artifacts: checksum
cmd: gpg2
args:
- "--batch"
- "-u"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
aurs:
- name: myks-bin
homepage: https://github.com/mykso/myks
description: Configuration framework for Kubernetes applications
maintainers:
- "German Lashevich <german.lashevich at gmail dot com>"
license: "MIT"
private_key: "{{ .Env.AUR_SSH_KEY }}"
git_url: "ssh://[email protected]/myks-bin.git"
optdepends:
- "vendir: for downloading from external sources"
- "git: for smart detection of changes"
- "helm: for rendering helm charts"
package: |-
BIN=myks
install -Dm755 ./$BIN -t "${pkgdir}/usr/bin"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
./$BIN completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/$BIN"
./$BIN completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/$BIN.fish"
./$BIN completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_$BIN"
commit_author:
name: Mykso Bot
email: [email protected]
brews:
- name: myks
description: Configuration framework for Kubernetes applications
directory: Formula
homepage: https://github.com/mykso/myks
license: MIT
commit_author:
name: Mykso Bot
email: [email protected]
dependencies:
- name: git
type: optional
- name: helm
type: optional
repository:
owner: mykso
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_REPO_TOKEN }}"
dockers:
- goos: linux
goarch: amd64
image_templates:
- ghcr.io/mykso/myks:{{ .Tag }}-linux-amd64
- ghcr.io/mykso/myks:{{ .Major }}-linux-amd64
- ghcr.io/mykso/myks:{{ .Major }}.{{ .Minor }}-linux-amd64
- ghcr.io/mykso/myks:latest-linux-amd64
use: buildx
build_flag_templates:
- --platform=linux/amd64
- goos: linux
goarch: arm64
image_templates:
- ghcr.io/mykso/myks:{{ .Tag }}-linux-arm64
- ghcr.io/mykso/myks:{{ .Major }}-linux-arm64
- ghcr.io/mykso/myks:{{ .Major }}.{{ .Minor }}-linux-arm64
- ghcr.io/mykso/myks:latest-linux-arm64
use: buildx
build_flag_templates:
- --platform=linux/arm64
docker_manifests:
- name_template: ghcr.io/mykso/myks:{{ .Tag }}
image_templates:
- ghcr.io/mykso/myks:{{ .Tag }}-linux-amd64
- ghcr.io/mykso/myks:{{ .Tag }}-linux-arm64
- name_template: ghcr.io/mykso/myks:{{ .Major }}
image_templates:
- ghcr.io/mykso/myks:{{ .Major }}-linux-amd64
- ghcr.io/mykso/myks:{{ .Major }}-linux-arm64
- name_template: ghcr.io/mykso/myks:{{ .Major }}.{{ .Minor }}
image_templates:
- ghcr.io/mykso/myks:{{ .Major }}.{{ .Minor }}-linux-amd64
- ghcr.io/mykso/myks:{{ .Major }}.{{ .Minor }}-linux-arm64
- name_template: ghcr.io/mykso/myks:latest
image_templates:
- ghcr.io/mykso/myks:latest-linux-amd64
- ghcr.io/mykso/myks:latest-linux-arm64
nfpms:
- vendor: Mykso
homepage: https://github.com/mykso/myks
maintainer: German Lashevich <[email protected]>
description: Configuration framework for Kubernetes applications
license: MIT
formats:
- apk
- deb
- rpm