Skip to content

Commit d22f2d3

Browse files
committed
polishing
Signed-off-by: Moritz Wiesinger <[email protected]>
1 parent 860ab9a commit d22f2d3

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ jobs:
7777
run_id=$(gh run list --branch main --workflow build-and-test --repo open-telemetry/opentelemetry-collector-contrib --limit 1 --status success --json databaseId --jq '.[0].databaseId')
7878
echo "run_id=$run_id" >> "$GITHUB_OUTPUT"
7979
80-
- run: mkdir -p distributions/otelcol-contrib/artifacts
80+
- name: Create artifacts directory to store prebuilt artifacts
81+
run: mkdir -p distributions/otelcol-contrib/artifacts
8182

82-
- run: mkdir -p distributions/otelcol-contrib/artifacts/otelcol-contrib_linux_amd64_v1
83+
- name: Create sub-directory for otelcol-contrib nightly build
8384
if: ${{ inputs.distribution == 'otelcol-contrib' && inputs.latest == true }}
85+
run: mkdir -p distributions/otelcol-contrib/artifacts/otelcol-contrib_linux_amd64_v1
8486

85-
- name: Download built otelcontribcol artifact from contrib repo
87+
- name: Download built otelcol-contrib artifact from contrib repo
8688
if: inputs.latest == true
8789
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
8890
with:
@@ -91,7 +93,7 @@ jobs:
9193
github-token: ${{ secrets.GITHUB_TOKEN }}
9294
run-id: ${{ steps.get-run-id.outputs.run_id }}
9395

94-
- name: Rename downloaded artifact
96+
- name: Move downloaded artifact
9597
if: inputs.latest == true
9698
run: mv otelcontribcol_linux_amd64 distributions/otelcol-contrib/artifacts/otelcol-contrib_linux_amd64_v1/otelcol-contrib
9799

@@ -119,8 +121,8 @@ jobs:
119121
- if: ${{ inputs.distribution == 'otelcol-contrib' && inputs.latest != true }}
120122
run: mv distributions/otelcol-contrib/dist/**/* distributions/otelcol-contrib/artifacts/
121123

122-
- run: ls -laR distributions/otelcol-contrib/artifacts
123-
if: ${{ inputs.distribution == 'otelcol-contrib' }}
124+
- if: ${{ inputs.distribution == 'otelcol-contrib' }}
125+
run: ls -laR distributions/otelcol-contrib/artifacts
124126

125127
- name: Run GoReleaser for ${{ inputs.distribution }}
126128
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ OTELCOL_BUILDER_VERSION ?= 0.114.0
55
OTELCOL_BUILDER_DIR ?= ${HOME}/bin
66
OTELCOL_BUILDER ?= ${OTELCOL_BUILDER_DIR}/ocb
77

8-
DISTRIBUTIONS ?= "otelcol-contrib"
8+
DISTRIBUTIONS ?= "otelcol,otelcol-contrib,otelcol-k8s,otelcol-otlp"
99

1010
ci: check build
1111
check: ensure-goreleaser-up-to-date

cmd/goreleaser/internal/configure.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ func GenerateContribBuildOnly(dist string, buildOrRest bool) config.Project {
6060
}
6161
}
6262

63-
func Generate(dist string, split bool) config.Project {
63+
func Generate(dist string, buildOrRest bool) config.Project {
6464
return config.Project{
6565
ProjectName: "opentelemetry-collector-releases",
6666
Checksum: config.Checksum{
6767
NameTemplate: fmt.Sprintf("{{ .ProjectName }}_%v_checksums.txt", dist),
6868
},
6969
Env: []string{"COSIGN_YES=true"},
70-
Builds: Builds(dist, split),
70+
Builds: Builds(dist, buildOrRest),
7171
Archives: Archives(dist),
7272
MSI: WinPackages(dist),
7373
NFPMs: Packages(dist),

0 commit comments

Comments
 (0)