Skip to content

Commit e92ebe9

Browse files
committed
remove debug things, update gorelease go config to resemble working config
Signed-off-by: Moritz Wiesinger <[email protected]>
1 parent f29103d commit e92ebe9

File tree

8 files changed

+28
-12
lines changed

8 files changed

+28
-12
lines changed

.github/workflows/base-ci-goreleaser.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ env:
2525
jobs:
2626
check-goreleaser:
2727
strategy:
28-
fail-fast: false
2928
matrix:
3029
GOOS: ${{ fromJSON( inputs.goos) }}
3130
GOARCH: ${{ fromJSON( inputs.goarch) }}

.github/workflows/base-release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ jobs:
100100
env:
101101
GOOS: ${{ matrix.GOOS }}
102102
GOARCH: ${{ matrix.GOARCH }}
103+
GOARM: "7" # Default is 6
104+
GOAMD64: v1
105+
GOPPC64: power8
103106
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
104107
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
105108
COSIGN_YES: true

.github/workflows/ci-goreleaser-core.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
distribution: otelcol
3232
goos: '[ "linux", "windows", "darwin" ]'
33-
goarch: '[ "386", "amd64", "arm64", "ppc64le", "arm" ]'
33+
goarch: '[ "386", "amd64", "arm64", "ppc64le", "arm", "s390x" ]'
3434
secrets: inherit
3535

3636
package-tests:

cmd/goreleaser/internal/configure.go

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,13 @@ func Build(dist string, buildOrRest bool) config.Build {
114114
Path: "artifacts/otelcol-contrib_{{ .Target }}" +
115115
"/otelcol-contrib{{- if eq .Os \"windows\" }}.exe{{ end }}",
116116
},
117-
Goos: goos,
118-
Goarch: archs,
119-
Goarm: ArmVersions(dist),
120-
Dir: "_build",
121-
Binary: dist,
122-
Ignore: IgnoreBuildCombinations(dist),
117+
Goos: goos,
118+
Goarch: archs,
119+
Goarm: ArmVersions(dist),
120+
Goppc64: Ppc64Versions(dist),
121+
Dir: "_build",
122+
Binary: dist,
123+
Ignore: IgnoreBuildCombinations(dist),
123124
}
124125
}
125126

@@ -137,10 +138,11 @@ func Build(dist string, buildOrRest bool) config.Build {
137138
Flags: []string{"-trimpath"},
138139
Ldflags: []string{"-s", "-w"},
139140
},
140-
Goos: goos,
141-
Goarch: archs,
142-
Goarm: ArmVersions(dist),
143-
Ignore: IgnoreBuildCombinations(dist),
141+
Goos: goos,
142+
Goarch: archs,
143+
Goarm: ArmVersions(dist),
144+
Goppc64: Ppc64Versions(dist),
145+
Ignore: IgnoreBuildCombinations(dist),
144146
}
145147
}
146148

@@ -165,6 +167,10 @@ func ArmVersions(dist string) []string {
165167
return []string{"7"}
166168
}
167169

170+
func Ppc64Versions(dist string) []string {
171+
return []string{"power8"}
172+
}
173+
168174
func Archives(dist string) []config.Archive {
169175
return []config.Archive{
170176
Archive(dist),

distributions/otelcol-contrib/.goreleaser-build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ builds:
1515
- s390x
1616
goarm:
1717
- "7"
18+
goppc64:
19+
- power8
1820
ignore:
1921
- goos: darwin
2022
goarch: "386"

distributions/otelcol-contrib/.goreleaser.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ builds:
2424
- s390x
2525
goarm:
2626
- "7"
27+
goppc64:
28+
- power8
2729
ignore:
2830
- goos: darwin
2931
goarch: "386"

distributions/otelcol-k8s/.goreleaser.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ builds:
1111
- arm64
1212
- ppc64le
1313
- s390x
14+
goppc64:
15+
- power8
1416
dir: _build
1517
binary: otelcol-k8s
1618
ldflags:

distributions/otelcol-otlp/.goreleaser.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ builds:
2323
- s390x
2424
goarm:
2525
- "7"
26+
goppc64:
27+
- power8
2628
ignore:
2729
- goos: darwin
2830
goarch: "386"

0 commit comments

Comments
 (0)