Run deployment tests in .NET SDK container
This commit is contained in:
@@ -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}."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user