Skip to content

Commit 12bf42f

Browse files
committed
update ocb code to also generate riscv64 artifacts, remove riscv64 from opamp
1 parent 99deef3 commit 12bf42f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmd/goreleaser/internal/configure.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ var (
5555
darwinArchs = []string{"amd64", "arm64"}
5656
k8sArchs = []string{"amd64", "arm64", "ppc64le", "riscv64", "s390x"}
5757
ebpfProfilerArchs = []string{"amd64"}
58-
ocbArchs = []string{"amd64", "arm64", "ppc64le"}
58+
ocbArchs = []string{"amd64", "arm64", "ppc64le", "riscv64"}
59+
opAmpArchs = []string{"amd64", "arm64", "ppc64le"}
5960

6061
imageRepos = []string{dockerHub, ghcr}
6162

@@ -217,15 +218,15 @@ var (
217218
// OpAMP Supervisor binary
218219
opampDist = newDistributionBuilder(opampBinary).WithConfigFunc(func(d *distribution) {
219220
d.buildConfigs = []buildConfig{
220-
&fullBuildConfig{targetOS: "linux", targetArch: ocbArchs, binaryName: "opampsupervisor"},
221+
&fullBuildConfig{targetOS: "linux", targetArch: opAmpArchs, binaryName: "opampsupervisor"},
221222
&fullBuildConfig{targetOS: "darwin", targetArch: darwinArchs, binaryName: "opampsupervisor"},
222223
&fullBuildConfig{targetOS: "windows", targetArch: []string{"amd64"}, binaryName: "opampsupervisor"},
223224
}
224225
d.containerImages = slices.Concat(
225-
newContainerImages(d.name, "linux", ocbArchs, containerImageOptions{binaryRelease: true}),
226+
newContainerImages(d.name, "linux", opAmpArchs, containerImageOptions{binaryRelease: true}),
226227
)
227228
d.containerImageManifests = slices.Concat(
228-
newContainerImageManifests(d.name, "linux", ocbArchs, containerImageOptions{binaryRelease: true}),
229+
newContainerImageManifests(d.name, "linux", opAmpArchs, containerImageOptions{binaryRelease: true}),
229230
)
230231
d.ldFlags = "-s -w -X github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/internal.version={{ .Version }}"
231232
}).WithBinaryPackagingDefaults().

0 commit comments

Comments
 (0)