Skip to content

User agent #539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/webserver-centos8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: webserver centos8

on:
workflow_dispatch:

jobs:
webserver-build-test-centos8:
name: webserver-centos8-build
runs-on: ubuntu-20.04
steps:
- name: checkout otel webserver
uses: actions/checkout@v4
- name: setup buildx
id: buildx
uses: docker/setup-buildx-action@master
with:
install: true
# - name: cache docker layers
# uses: actions/cache@v3
# with:
# path: /tmp/buildx-cache/
# key: apache-centos8-${{ github.sha }}
# restore-keys: |
# apache-centos8
- name: setup docker image
run: |
cd instrumentation/otel-webserver-module
docker buildx build -t apache_centos8 -f docker/centos8/Dockerfile \
--load .
- name: build
run: |
docker run -idt --name apache_centos8_container apache_centos8 /bin/bash
cd instrumentation/otel-webserver-module
docker exec apache_centos8_container bash -c \
'cd /otel-webserver-module; rm -rf *;'
docker cp . $(docker inspect --format="{{.Id}}" apache_centos8_container):/otel-webserver-module/
docker exec apache_centos8_container bash -c \
'cd /otel-webserver-module; rm -rf build; \
cp -r /dependencies /otel-webserver-module/; \
cp -r /build-dependencies /otel-webserver-module/; \
./gradlew assembleWebServerModule'
- name: unit test
run: |
docker exec apache_centos8_container bash -c \
'cd /otel-webserver-module; ./gradlew runUnitTest'
# - name: update cache
# run: |
# rm -rf /tmp/buildx-cache/apache_centos8
# mv /tmp/buildx-cache/apache_centos8-new /tmp/buildx-cache/apache_centos8
- name: copy artifacts
id: artifacts
run: |
cd instrumentation/otel-webserver-module
mkdir -p /tmp/apache_centos8/
docker cp apache_centos8_container:/otel-webserver-module/build/opentelemetry-webserver-sdk-x64-linux.tgz \
/tmp/apache_centos8/
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: opentelemetry-webserver-sdk-x64-linux.tgz
path: /tmp/apache_centos8/opentelemetry-webserver-sdk-x64-linux.tgz
Loading