Skip to content

Commit e1d2c21

Browse files
authored
feat(collector): add manual collector build workflow (#1661)
1 parent 4b07a5c commit e1d2c21

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Manual Build (Collector)"
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
architecture: [ amd64, arm64 ]
12+
outputs:
13+
COLLECTOR_VERSION: ${{ steps.save-collector-version.outputs.COLLECTOR_VERSION }}
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
- name: Setup Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: '~1.21.9'
21+
- name: Build Collector
22+
run: make -C collector package GOARCH=${{ matrix.architecture }}
23+
- name: Upload Collector Artifact
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: opentelemetry-collector-layer-${{ matrix.architecture }}.zip
27+
path: ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip

0 commit comments

Comments
 (0)