forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopentelemetry-collector.yaml
More file actions
55 lines (50 loc) · 1.69 KB
/
Copy pathopentelemetry-collector.yaml
File metadata and controls
55 lines (50 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package:
name: opentelemetry-collector
version: v0.151.0 # Keep in sync with go.opentelemetry.io/collector version in go.mod
epoch: 0
description: "Vendor-agnostic implementation on how to receive, process and export telemetry data"
target-architecture:
- x86_64
copyright:
- paths:
- "*"
attestation: 'Copyright 2014 The open-telemetry Authors'
license: 'Apache License 2.0'
dependencies:
runtime:
environment:
contents:
repositories:
- https://packages.wolfi.dev/os
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
packages:
- busybox
- ca-certificates-bundle
- gcc
- gettext
- git
- go
# - g++ # Not available on Wolfi - required?
- wolfi-base
pipeline:
- name: Populate builder template with version variables
runs: |
export OTEL_COLLECTOR_VERSION=${{package.version}}
envsubst <opentelemetry-collector/builder.template.yaml >opentelemetry-collector/builder.yaml
cat opentelemetry-collector/builder.yaml
- name: Run collector builder
runs: |
go run go.opentelemetry.io/collector/cmd/builder@v${{package.version}} \
--config opentelemetry-collector/builder.yaml \
--output-path=/tmp/otelcol-sourcegraph
- name: Package collector
# TODO: Change directory, but /bin is hardcoded into k8s manifests
runs: |
mkdir -p ${{targets.destdir}}/bin/
cp /tmp/otelcol-sourcegraph/otelcol-sourcegraph ${{targets.destdir}}/bin/otelcol-sourcegraph
update:
enabled: true
github:
identifier: open-telemetry/opentelemetry-collector
strip-prefix: "cmd/builder/v" # This may break as otel release tags have a lot of variation