generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from cybozu-go/d-kuro/krew
Support krew release
- Loading branch information
Showing
8 changed files
with
200 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
/docs | ||
/e2e | ||
/hack | ||
/dist | ||
/.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
/bin | ||
/build | ||
/testbin | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
before: | ||
hooks: | ||
- make release-manifests-build | ||
|
||
builds: | ||
- id: kubectl-moco | ||
main: ./cmd/kubectl-moco | ||
binary: kubectl-moco | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
ignore: # ref: https://goreleaser.com/deprecations/#builds-for-windowsarm64 | ||
- goos: windows | ||
goarch: arm64 | ||
|
||
archives: | ||
- builds: | ||
- kubectl-moco | ||
name_template: "kubectl-{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" | ||
wrap_in_directory: false | ||
format: tar.gz | ||
files: | ||
- LICENSE | ||
|
||
checksum: | ||
name_template: checksums.txt | ||
|
||
changelog: | ||
skip: true | ||
|
||
release: | ||
github: | ||
owner: cybozu-go | ||
name: moco | ||
prerelease: auto | ||
name_template: "Release {{ .Tag }}" | ||
footer: | | ||
See [CHANGELOG.md](./CHANGELOG.md) for details. | ||
extra_files: | ||
- glob: build/moco.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: moco | ||
spec: | ||
version: {{ .TagName }} | ||
homepage: https://github.com/cybozu-go/moco | ||
platforms: | ||
- selector: | ||
matchLabels: | ||
os: darwin | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/cybozu-go/moco/releases/download/{{ .TagName }}/kubectl-moco_{{ .TagName }}_darwin_amd64.tar.gz" .TagName | indent 6 }} | ||
bin: kubectl-moco | ||
files: | ||
- from: kubectl-moco | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
- selector: | ||
matchLabels: | ||
os: darwin | ||
arch: arm64 | ||
{{addURIAndSha "https://github.com/cybozu-go/moco/releases/download/{{ .TagName }}/kubectl-moco_{{ .TagName }}_darwin_arm64.tar.gz" .TagName | indent 6 }} | ||
bin: kubectl-moco | ||
files: | ||
- from: kubectl-moco | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/cybozu-go/moco/releases/download/{{ .TagName }}/kubectl-moco_{{ .TagName }}_linux_amd64.tar.gz" .TagName | indent 6 }} | ||
bin: kubectl-moco | ||
files: | ||
- from: kubectl-moco | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: arm64 | ||
{{addURIAndSha "https://github.com/cybozu-go/moco/releases/download/{{ .TagName }}/kubectl-moco_{{ .TagName }}_linux_arm64.tar.gz" .TagName | indent 6 }} | ||
bin: kubectl-moco | ||
files: | ||
- from: kubectl-moco | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
- selector: | ||
matchLabels: | ||
os: windows | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/cybozu-go/moco/releases/download/{{ .TagName }}/kubectl-moco_{{ .TagName }}_windows_amd64.tar.gz" .TagName | indent 6 }} | ||
bin: kubectl-moco.exe | ||
files: | ||
- from: kubectl-moco.exe | ||
to: . | ||
- from: LICENSE | ||
to: . | ||
shortDescription: kubectl-moco is a plugin for kubectl to control MySQL clusters of MOCO. | ||
description: | | ||
kubectl-moco is a plugin for kubectl to control MySQL clusters of MOCO. | ||
Read more documentation at: https://cybozu-go.github.io/moco/kubectl-moco.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters