Skip to content

Commit

Permalink
feat(collector): add manual collector build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
serkan-ozal committed Jan 14, 2025
1 parent 3f96b64 commit ac8fdcd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-collector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Manual Build (Collector)"

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [ amd64, arm64 ]
outputs:
COLLECTOR_VERSION: ${{ steps.save-collector-version.outputs.COLLECTOR_VERSION }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '~1.21.9'
- name: Build Collector
run: make -C collector package GOARCH=${{ matrix.architecture }}
- name: Upload Collector Artifact
uses: actions/upload-artifact@v4
with:
name: opentelemetry-collector-layer-${{ matrix.architecture }}.zip
path: ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip

0 comments on commit ac8fdcd

Please sign in to comment.