Skip to content

Commit

Permalink
Download the latest otelcol.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimf5 committed Dec 18, 2024
1 parent 1e183a3 commit 6626b89
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Ubuntu build

on:
push:
branches:
- main
pull_request:

jobs:
Expand Down Expand Up @@ -35,10 +33,13 @@ jobs:
-DNGX_OTEL_DEV=ON ..
make -j $(nproc)
- name: Download otelcol
env:
URL: "https://github.com/open-telemetry/\
opentelemetry-collector-releases/releases/latest/"
run: |
curl -sLo - https://github.com/\
open-telemetry/opentelemetry-collector-releases/releases/download/\
v0.115.1/otelcol_0.115.1_linux_amd64.tar.gz | tar -xzv
curl -sLo - ${URL}download/otelcol_\
$(curl -sD - $URL | grep location: | cut -d v -f 2 | sed -e 's/\r//')\
_linux_amd64.tar.gz | tar -xzv
- name: Install test dependencies
run: pip install -r tests/requirements.txt
- name: Run tests
Expand Down

0 comments on commit 6626b89

Please sign in to comment.