-
Notifications
You must be signed in to change notification settings - Fork 593
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
Use goreleaser for rpk releases #7115
Use goreleaser for rpk releases #7115
Conversation
required secrets have been defined for this repository |
a GHA job run that tests these changes: https://github.com/ivotron/redpanda/actions/runs/3408138014/jobs/5668439346 . this is running on my fork repo, where I added the same secrets and changed the org references from I triggered using the
To test the tap: brew tap ivotron/homebrew-tap
# verify the info
brew info ivotron/tap/redpanda
# on an M1 mac, this will attempt to fetch the arm64 binary
brew install ivotron/tap/redpanda since the release is marked draft, the messages is:
but this shows how the |
I pushed a |
fs := afero.NewOsFs() | ||
p := config.Params{ConfigPath: ""} | ||
cfg, err := p.Load(fs) | ||
if err != nil { | ||
log.Fatalf("%s", fmt.Errorf("unable to read the redpanda configuration file: %w", err)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm, this is from #7107, can this be rebased on dev?
src/go/k8s/cmd/configurator/main.go
Outdated
p := path.Join(c.configSourceDir, "redpanda.yaml") | ||
cf, err := os.ReadFile(p) | ||
if err != nil { | ||
log.Fatalf("%s", fmt.Errorf("unable to read the redpanda configuration file: %w", err)) | ||
log.Fatalf("%s", fmt.Errorf("unable to read the redpanda configuration file, %q: %w", p, err)) | ||
} | ||
cfg := &config.Config{} | ||
err = yaml.Unmarshal(cf, cfg) | ||
if err != nil { | ||
log.Fatalf("%s", fmt.Errorf("unable to parse the redpanda configuration file, %q: %w", p, err)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from #7107 as well (and the go.mod change)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, sorry, the rebase is a bit messed up. fixed in the last push
the goreleaser configuration added in this commit defines the following: - builds for windows and darwin, to replicate the previous github actions-based workflow - homebrew release, which takes care of publishing M1 binaries - for the darwin build, hooks for signing/notarizing using quill - github release that replicates the github actions-based workflow for uploading rpk binaries as github release artifacts Signed-off-by: Ivo Jimenez <[email protected]>
- installs quill instead of gon, as this is what's used now for signing/notarization of darwin binaries. - moves logic of github/homebrew releases to goreleaser's Signed-off-by: Ivo Jimenez <[email protected]>
These are now unused. Signed-off-by: Ivo Jimenez <[email protected]>
0e71d97
to
c553d8c
Compare
@ivotron what’s the motivation for this change. To create a separate rpk release train ? |
the main goal is to fix #2773. |
/backport v22.3.x |
/backport v22.2.x |
/backport v22.1.x |
Failed to run cherry-pick command. I executed the below command:
|
Failed to run cherry-pick command. I executed the below command:
|
Please note that Brew can't install 22.3.6: #7757 |
Use
goreleaser
for creating/publishing RPK binaries. To test locally, installgoreleaser
and then:The
--snapshot
above makes the build skip notarization for darwin binaries.fixes #2773
fixes https://github.com/redpanda-data/devprod/issues/443
related to #4191
related to redpanda-data/homebrew-tap#9
Backport Required
Release notes