Skip to content

Commit

Permalink
fix: change binary name
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydın <[email protected]>
  • Loading branch information
developer-guy committed Sep 15, 2021
1 parent 6e10151 commit d8277e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,27 @@ before:
- go mod download
builds:
- id: linux-amd64
binary: kink-linux-{{ .Arch }}
binary: kink
main: ./main.go
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w -X github.com/Trendyol/kink/cmd.GitVersion={{ .Version }} -X github.com/Trendyol/kink/cmd.gitCommit={{ .ShortCommit }} -X github.com/Trendyol/kink/cmd.buildDate={{ .CommitDate }}
no_unique_dist_dir: true

- id: darwin-amd64
binary: kink-darwin-{{ .Arch }}
binary: kink
main: ./main.go
goos:
- darwin
goarch:
- amd64
ldflags:
- -s -w -X github.com/Trendyol/kink/cmd.GitVersion={{ .Version }} -X github.com/Trendyol/kink/cmd.gitCommit={{ .ShortCommit }} -X github.com/Trendyol/kink/cmd.buildDate={{ .CommitDate }}
no_unique_dist_dir: true

- id: windows-amd64
binary: kink-windows-{{ .Arch }}
binary: kink
main: ./main.go
goos:
- windows
Expand All @@ -44,7 +42,6 @@ builds:
ldflags:
- -s -w -X github.com/Trendyol/kink/cmd.GitVersion={{ .Version }} -X github.com/Trendyol/kink/cmd.gitCommit={{ .ShortCommit }} -X github.com/Trendyol/kink/cmd.buildDate={{ .CommitDate }}
- -buildmode=exe
no_unique_dist_dir: true

signs:
- cmd: cosign
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM gcr.io/distroless/static:nonroot-amd64

ADD kink-linux-amd64 /usr/local/bin/kink
ADD kink /usr/local/bin/kink

USER nonroot
ENTRYPOINT ["kink"]
Expand Down

0 comments on commit d8277e9

Please sign in to comment.