Split docker build and test into separate scripts
This commit is contained in:
18
scripts/docker/build.sh
Executable file
18
scripts/docker/build.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
IMAGE="${DOTNET_IMAGE:-mcr.microsoft.com/dotnet/sdk:10.0}"
|
||||
|
||||
docker run --rm \
|
||||
-v "${ROOT_DIR}:/workspace" \
|
||||
-w /workspace \
|
||||
"${IMAGE}" \
|
||||
bash -lc "
|
||||
set -euo pipefail
|
||||
dotnet --info
|
||||
dotnet restore DynamORM.sln
|
||||
dotnet build DynamORM.sln -c Release --no-restore
|
||||
dotnet pack DynamORM/DynamORM.csproj -c Release --no-build -o /workspace/artifacts/nuget
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user