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}." -