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

fix: update goreleaser.yaml #557

Merged
merged 1 commit into from
Oct 2, 2024
Merged
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
42 changes: 1 addition & 41 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ builds:
- -X "github.com/pluralsh/plural-cli/pkg/common.Date={{.Date}}"
- -X "github.com/pluralsh/plural-cli/pkg/scm.GitlabClientSecret={{.Env.GITLAB_CLIENT_SECRET}}"
binary: plural
# Do not embed UI into linux/arm64 and windows/arm64 binaries
overrides:
- goos: linux
goarch: arm64
tags: [linux]
env:
- CGO_ENABLED=0
- goos: windows
goarch: arm64
tags: [windows]
env:
- CGO_ENABLED=0
- id: plrlctl
main: ./cmd/plrlctl
targets:
Expand All @@ -65,35 +53,7 @@ builds:
- -X "github.com/pluralsh/plural-cli/pkg/common.Commit={{.Commit}}"
- -X "github.com/pluralsh/plural-cli/pkg/common.Date={{.Date}}"
- -X "github.com/pluralsh/plural-cli/pkg/scm.GitlabClientSecret={{.Env.GITLAB_CLIENT_SECRET}}"
binary: plural
# Do not embed UI into linux/arm64 and windows/arm64 binaries
overrides:
- goos: linux
goarch: arm64
tags: [linux]
env:
- CGO_ENABLED=0
- goos: windows
goarch: arm64
tags: [windows]
env:
- CGO_ENABLED=0
# Build CLI binary without embedded UI for linux.
# - id: plural-cli-console
# targets:
# - linux_amd64
# - linux_arm64
# ldflags:
# - -s
# - -w
# - -X "github.com/pluralsh/plural-cli/cmd/plural.Version={{.Version}}"
# - -X "github.com/pluralsh/plural-cli/cmd/plural.Commit={{.Commit}}"
# - -X "github.com/pluralsh/plural-cli/cmd/plural.Date={{.Date}}"
# - -X "github.com/pluralsh/plural-cli/pkg/scm.GitlabClientSecret={{.Env.GITLAB_CLIENT_SECRET}}"
# tags: [ linux ]
# env:
# - CGO_ENABLED=0
# binary: plural
binary: pluralctl

archives:
- id: plural-cli
Expand Down
Loading