chore(deps): update opentelemetry collector #1171
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build PR Snapshots | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "~1.22.6" | |
- uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64 | |
- uses: docker/setup-buildx-action@v3 | |
- uses: anchore/sbom-action/[email protected] | |
- name: Cache tools | |
uses: actions/cache@v4 | |
with: | |
path: .tools | |
key: snapshot-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | |
- name: Touch tools | |
run: | | |
mkdir -p .tools | |
touch .tools/* | |
- name: Create Snapshot for Pull Request | |
run: make snapshot | |
- name: Upload Pull Request Preview | |
uses: actions/upload-artifact@v4 | |
with: | |
name: otelcol_dynatrace_${{ github.event.pull_request.number }}_${{ github.run_number }} | |
path: dist/* | |
- name: Upload linux service packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-packages | |
path: | | |
dist/dynatrace-otel-collector_*_Linux_x86_64.deb | |
dist/dynatrace-otel-collector_*_Linux_x86_64.rpm | |
dist/dynatrace-otel-collector_*_Linux_arm64.deb | |
dist/dynatrace-otel-collector_*_Linux_arm64.rpm | |
dist/metadata.json | |
linux-package-tests: | |
name: Test Linux Packages | |
runs-on: ubuntu-22.04 | |
needs: build | |
strategy: | |
matrix: | |
os: ["deb", "rpm"] | |
arch: ["x86_64", "arm64"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64 | |
- uses: docker/setup-buildx-action@v3 | |
- name: Download linux service packages | |
uses: actions/download-artifact@v4 | |
with: | |
name: linux-packages | |
path: linux-packages | |
- name: Parse metadata file | |
id: parse-metadata | |
run: | | |
metadata=`cat ./linux-packages/metadata.json` | |
echo "metadata=$metadata" >> "$GITHUB_OUTPUT" | |
- name: Extract version number | |
id: extract-version | |
run: echo "version=${{ fromJson(steps.parse-metadata.outputs.metadata).version }}" >> "$GITHUB_OUTPUT" | |
- name: Test | |
run: make package-test ARCH=${{ matrix.arch }} PACKAGE_PATH=linux-packages/dynatrace-otel-collector_${{ steps.extract-version.outputs.version }}_Linux_${{ matrix.arch }}.${{ matrix.os }} |