-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yml
More file actions
111 lines (109 loc) · 3.07 KB
/
Copy path.goreleaser.yml
File metadata and controls
111 lines (109 loc) · 3.07 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# 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
upx:
- enabled: true
goos:
- linux
- windows
lzma: true
archives:
- format_overrides:
- goos: windows
formats:
- 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://aur@aur.archlinux.org/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: german.lashevich+mykso-bot@gmail.com
homebrew_casks:
- name: myks
description: Configuration framework for Kubernetes applications
homepage: https://github.com/mykso/myks
license: MIT
commit_author:
name: Mykso Bot
email: german.lashevich+mykso-bot@gmail.com
dependencies:
- formula: git
- formula: helm
repository:
owner: mykso
name: homebrew-tap
token: '{{ .Env.HOMEBREW_TAP_REPO_TOKEN }}'
hooks:
post:
# This is a workaround for the quarantine attribute that macOS applies to downloaded files.
install: |
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/myks"]
end
dockers_v2:
- images:
- ghcr.io/mykso/myks
tags:
- '{{ .Tag }}'
- '{{ .Major }}'
- '{{ .Major }}.{{ .Minor }}'
- latest
nfpms:
- vendor: Mykso
homepage: https://github.com/mykso/myks
maintainer: German Lashevich <german.lashevich@gmail.com>
description: Configuration framework for Kubernetes applications
license: MIT
formats:
- apk
- deb
- rpm