Skip to content

Commit

Permalink
Download the latest otelcol for CI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimf5 committed Dec 19, 2024
1 parent 1e183a3 commit 11e2111
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ jobs:
make -j $(nproc)
- name: Download otelcol
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
LATEST=open-telemetry/opentelemetry-collector-releases/releases/latest
TAG=$(curl -s https://api.github.com/repos/${LATEST} |
jq -r .tag_name)
curl -sLo - https://github.com/${LATEST}/download/\
otelcol_${TAG:1}_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 11e2111

Please sign in to comment.