generated from replicatedhq/krew-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
71 lines (65 loc) · 1.79 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
# SPDX-FileCopyrightText: 2023 Kalle Fagerberg
#
# SPDX-License-Identifier: CC0-1.0
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: kubectl-klock
release:
github:
owner: applejag
name: kubectl-klock
builds:
- goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- "386"
env:
- CGO_ENABLED=0
- GO111MODULE=on
main: main.go
ldflags: -s -w -X main.version={{ .Version }}
snapcrafts:
- name: klock
license: GPL-3.0-or-later
description: |
Kubectl plugin that watches resources and prints them in a human-readable manner.
Very similar to `kubectl get`, but with live updates.
summary: Kubectl plugin that watches resources
grade: stable # stable | devel
base: core22
confinement: strict # strict | devmode | classic
extra_files:
- source: bin/klock.kubectl-klock.completion.bash.license
destination: bin/klock.kubectl-klock.completion.bash.license
mode: 0644
- source: LICENSES
destination: LICENSES
mode: 0644
apps:
kubectl-klock:
command: kubectl-klock
aliases:
- kubectl-klock # instead of klock.kubectl-klock
plugs:
- home
- network
completer: bin/klock.kubectl-klock.completion.bash
# Special program that kubectl looks for to do completion from
# when running "kubectl klock <TAB>"
kubectl-complete:
command: kubectl-klock __complete
aliases:
- kubectl_complete-klock # instead of klock.kubectl-complete
plugs:
- home
- network
archives:
- builds:
- kubectl-klock
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip