Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ migrate goreleaser v2 #3138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@

project_name: kcp
version: 2
env:
- CGO_ENABLED=0
- LDFLAGS="{{ .Env.LDFLAGS }}"

builds:
- id: "kcp"
main: ./cmd/kcp
dir: ./cmd/kcp
binary: bin/kcp
ldflags:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is still needed

- "{{ .Env.LDFLAGS }}"
goos:
- linux
- darwin
Expand All @@ -15,14 +19,10 @@ builds:
ignore:
- goos: darwin
goarch: ppc64le
env:
- CGO_ENABLED=0
- id: "kubectl-kcp"
main: ./cmd/kubectl-kcp
dir: cli
binary: bin/kubectl-kcp
ldflags:
- "{{ .Env.LDFLAGS }}"
goos:
- linux
- darwin
Expand All @@ -36,14 +36,10 @@ builds:
goarch: ppc64le
- goos: windows
goarch: ppc64le
env:
- CGO_ENABLED=0
- id: "kubectl-workspace"
main: ./cmd/kubectl-workspace
dir: cli
binary: bin/kubectl-workspace
ldflags:
- "{{ .Env.LDFLAGS }}"
goos:
- linux
- darwin
Expand All @@ -61,8 +57,7 @@ builds:
post:
- ln -sf kubectl-workspace bin/kubectl-workspaces
- ln -sf kubectl-workspace bin/kubectl-ws
env:
- CGO_ENABLED=0

archives:
- id: kcp
builds:
Expand All @@ -82,6 +77,7 @@ archives:
name_template: "kubectl-kcp-ws-plugin_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- bin/kubectl-ws

release:
draft: true
mode: keep-existing
Expand Down
Loading