Skip to content

Commit bdf1d0b

Browse files
committed
Add build step to tooling image build
1 parent ce58a78 commit bdf1d0b

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

scripts/check-api-reference.sh

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
dotnet build
5-
64
diff -q docs/docs/api-reference/difficalcy-osu.json <(dotnet tool run swagger tofile Difficalcy.Osu/bin/Debug/net8.0/Difficalcy.Osu.dll v1)
75
diff -q docs/docs/api-reference/difficalcy-taiko.json <(dotnet tool run swagger tofile Difficalcy.Taiko/bin/Debug/net8.0/Difficalcy.Taiko.dll v1)
86
diff -q docs/docs/api-reference/difficalcy-catch.json <(dotnet tool run swagger tofile Difficalcy.Catch/bin/Debug/net8.0/Difficalcy.Catch.dll v1)

scripts/update-api-reference.sh

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
dotnet build
5-
64
dotnet tool run swagger tofile Difficalcy.Osu/bin/Debug/net8.0/Difficalcy.Osu.dll v1 > docs/docs/api-reference/difficalcy-osu.json
75
dotnet tool run swagger tofile Difficalcy.Taiko/bin/Debug/net8.0/Difficalcy.Taiko.dll v1 > docs/docs/api-reference/difficalcy-taiko.json
86
dotnet tool run swagger tofile Difficalcy.Catch/bin/Debug/net8.0/Difficalcy.Catch.dll v1 > docs/docs/api-reference/difficalcy-catch.json

tooling.Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,17 @@ COPY Difficalcy.Tests/Difficalcy.Tests.csproj ./Difficalcy.Tests/
2626

2727
RUN dotnet restore
2828

29+
COPY Difficalcy ./Difficalcy
30+
COPY Difficalcy.Catch ./Difficalcy.Catch
31+
COPY Difficalcy.Catch.Tests ./Difficalcy.Catch.Tests
32+
COPY Difficalcy.Mania ./Difficalcy.Mania
33+
COPY Difficalcy.Mania.Tests ./Difficalcy.Mania.Tests
34+
COPY Difficalcy.Osu ./Difficalcy.Osu
35+
COPY Difficalcy.Osu.Tests ./Difficalcy.Osu.Tests
36+
COPY Difficalcy.Taiko ./Difficalcy.Taiko
37+
COPY Difficalcy.Taiko.Tests ./Difficalcy.Taiko.Tests
38+
COPY Difficalcy.Tests ./Difficalcy.Tests
39+
40+
RUN dotnet build
41+
2942
COPY . .

0 commit comments

Comments
 (0)