From 0de98589687b0649a362338c67943931bcf26b70 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Wed, 24 Jan 2024 15:28:57 +0100 Subject: [PATCH] ci: fix benthos collector binary build Signed-off-by: Mark Sagi-Kazar --- ci/build.go | 1 + ci/release.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/build.go b/ci/build.go index a7fec94a9..e72922699 100644 --- a/ci/build.go +++ b/ci/build.go @@ -191,6 +191,7 @@ func (m *Binary) build(platform Platform, version string, pkg string) *File { return goModule(). WithSource(m.Source). + WithPlatform(string(platform)). Build(GoWithSourceBuildOpts{ Name: "benthos", Pkg: pkg, diff --git a/ci/release.go b/ci/release.go index d7e35f32a..09bd6e92d 100644 --- a/ci/release.go +++ b/ci/release.go @@ -94,7 +94,7 @@ func (m *Ci) binaryArchive(version string, platform Platform) *File { } return archiver.Archive( - fmt.Sprintf("benthos_%s", strings.ReplaceAll(string(platform), "/", "_")), + fmt.Sprintf("benthos-collector_%s", strings.ReplaceAll(string(platform), "/", "_")), dag.Directory(). WithFile("", m.Build().Binary().benthosCollector(platform, version)). WithFile("", m.Source.File("README.md")).