From 7829b10b23b12a6e307b00740a01705e325a0f27 Mon Sep 17 00:00:00 2001 From: hz Date: Mon, 20 Jul 2026 20:37:22 -0500 Subject: [PATCH] Run deployment tests in .NET SDK container --- .gitea/scripts/deploy-environment.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/scripts/deploy-environment.sh b/.gitea/scripts/deploy-environment.sh index 5983ae5..89706c6 100644 --- a/.gitea/scripts/deploy-environment.sh +++ b/.gitea/scripts/deploy-environment.sh @@ -32,7 +32,12 @@ docker builder prune -af || true docker system df df -h -dotnet test api/QuestionsApi.Tests/QuestionsApi.Tests.csproj -c Release +docker run --rm \ + --volume "${PWD}:/src" \ + --workdir /src \ + --env DOTNET_CLI_TELEMETRY_OPTOUT=1 \ + mcr.microsoft.com/dotnet/sdk:8.0 \ + dotnet test api/QuestionsApi.Tests/QuestionsApi.Tests.csproj -c Release docker build --build-arg BUILD_REVISION="${BUILD_TAG}" -t "${API_IMAGE}" api/QuestionsApi docker build \ --build-arg BUILD_REVISION="${BUILD_TAG}" \ @@ -68,4 +73,3 @@ kubectl rollout status deployment/step3-web -n "${KUBE_NAMESPACE}" --timeout=240 kubectl get --raw "/api/v1/namespaces/${KUBE_NAMESPACE}/services/step3-web:http/proxy/healthz" >/dev/null echo "Deployed ${DEPLOYMENT_ENVIRONMENT} revision ${BUILD_TAG}." -