From 998a59fb085934e59c3a73879c6d8effe03344a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Tue, 10 Oct 2023 09:25:30 +0200 Subject: [PATCH] CentOS build-container test fix --- .github/workflows/build-container.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index b5954f23fc..b5cabb2a72 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -15,8 +15,10 @@ jobs: include: - base-image: alpine os-type: linux-musl + net-version: net8.0 - base-image: centos os-type: linux-glibc + net-version: net7.0 runs-on: ubuntu-20.04 timeout-minutes: 60 steps: @@ -35,10 +37,10 @@ jobs: docker build -t mybuildimage -f "./docker/${{ matrix.base-image }}.dockerfile" ./docker docker run --mount type=bind,source="${GITHUB_WORKSPACE}",target=/project --rm mybuildimage /bin/sh -c ' set -e - dotnet publish -f net8.0 -c Release ./test/test-applications/integrations/TestApplication.Smoke + dotnet publish -f ${{ matrix.net-version }} -c Release ./test/test-applications/integrations/TestApplication.Smoke export OTEL_DOTNET_AUTO_HOME="${PWD}/bin/tracer-home" . ./instrument.sh - ./test/test-applications/integrations/bin/TestApplication.Smoke/Release/net8.0/publish/TestApplication.Smoke + ./test/test-applications/integrations/bin/TestApplication.Smoke/Release/${{ matrix.net-version }}/publish/TestApplication.Smoke test "$(ls -A /var/log/opentelemetry/dotnet )" ' - name: Publish Linux build