Skip to content

Commit

Permalink
fix(release): publish binary, revert name change.
Browse files Browse the repository at this point in the history
Publish the binary directly instead of publishing an archive.
  • Loading branch information
mgoltzsche committed Oct 18, 2021
1 parent 17c5652 commit 0c94b7a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
15 changes: 9 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ before:
builds:
- main: ./cmd/khelm
targets:
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
env:
- CGO_ENABLED=0
- CGO_ENABLED=0
ldflags:
- -s -w -extldflags '-static' -X main.khelmVersion={{.Version}} -X main.helmVersion={{.Env.HELM_VERSION}}
- -s -w -extldflags '-static' -X main.khelmVersion={{.Version}} -X main.helmVersion={{.Env.HELM_VERSION}}
archives:
- format: binary
name_template: "{{.ProjectName}}-{{.Os}}-{{.Arch}}"
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ Though plugin support in kustomize is still an alpha feature and may be removed

#### Plugin installation

Install using curl (linux amd64):
Install using curl (on OSX or Linux):
```sh
OS=$(uname | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')
mkdir -p $HOME/.config/kustomize/plugin/khelm.mgoltzsche.github.com/v1/chartrenderer
curl -fsSL https://github.com/mgoltzsche/khelm/releases/latest/download/khelm-linux-amd64 > $HOME/.config/kustomize/plugin/khelm.mgoltzsche.github.com/v1/chartrenderer/ChartRenderer
chmod u+x $HOME/.config/kustomize/plugin/khelm.mgoltzsche.github.com/v1/chartrenderer/ChartRenderer
curl -fsSL https://github.com/mgoltzsche/khelm/releases/latest/download/khelm-${OS}-${ARCH} > $HOME/.config/kustomize/plugin/khelm.mgoltzsche.github.com/v1/chartrenderer/ChartRenderer
chmod +x $HOME/.config/kustomize/plugin/khelm.mgoltzsche.github.com/v1/chartrenderer/ChartRenderer
```
or using `go`:
```sh
Expand Down Expand Up @@ -145,7 +147,9 @@ khelm also supports a helm-like `template` CLI.

#### Binary installation
```sh
curl -fsSL https://github.com/mgoltzsche/khelm/releases/latest/download/khelm-linux-amd64 > khelm
OS=$(uname | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')
curl -fsSL https://github.com/mgoltzsche/khelm/releases/latest/download/khelm-${OS}-${ARCH} > khelm
chmod +x khelm
sudo mv khelm /usr/local/bin/khelm
```
Expand Down

0 comments on commit 0c94b7a

Please sign in to comment.