File tree 8 files changed +56
-12
lines changed
8 files changed +56
-12
lines changed Original file line number Diff line number Diff line change
1
+ ** /bin /
2
+ ** /obj /
3
+ ** /global.json
4
+ ** /Dockerfile *
5
+ ** /.dockerignore *
6
+ ** /* .user
7
+ ** /* .Custom.json
8
+ ** /* .CustomDotSettings
9
+ .idea /
10
+ .vs /
11
+ .vscode /
12
+ .git /
13
+ adr /
14
+ artifacts /
15
+ temp /
16
+ ** /_NCrunch_ *
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ BenchmarkDotNet.Artifacts/
57
57
# .NET Core
58
58
project.lock.json
59
59
project.fragment.lock.json
60
- artifacts /
61
60
62
61
# StyleCop
63
62
StyleCopReport.xml
Original file line number Diff line number Diff line change
1
+ # Ignore everything in this directory
2
+ *
3
+ # Except this file
4
+ ! .gitignore
Original file line number Diff line number Diff line change 1
1
@ ECHO OFF
2
2
3
- docker run --rm -it --name hosting-build ^
3
+ :: Builds the build environment image.
4
+ docker build ^
5
+ -f build.dockerfile ^
6
+ --tag dotnet-libs-build .
7
+
8
+ if errorlevel 1 (
9
+ echo Docker build failed: Exit code is %errorlevel%
10
+ exit /b %errorlevel%
11
+ )
12
+
13
+ docker run --rm -it --name dotnet-libs-build ^
4
14
-v /var/run/docker.sock:/var/run/docker.sock ^
5
- -v %cd% :/repo ^
6
- -w / repo ^
7
- -e FEEDZ_LOGICALITY_API_KEY= %FEEDZ_LOGICALITY_API_KEY% ^
8
- --network host ^
15
+ -v %cd% /artifacts :/repo/artifacts ^
16
+ -v %cd% /.git:/ repo/.git ^
17
+ -v %cd% /temp:/repo/temp ^
18
+ -e NUGET_PACKAGES=/repo/temp/nuget-packages ^
9
19
-e BUILD_NUMBER=%GITHUB_RUN_NUMBER% ^
10
- damianh/dotnet-sdks:6 ^
11
- dotnet run -p build/build.csproj -c Release -- %*
20
+ --network host ^
21
+ dotnet-libs-build ^
22
+ dotnet run -p build/Build.csproj -c Release -- %*
12
23
13
24
if errorlevel 1 (
14
25
echo Docker build failed: Exit code is %errorlevel%
Original file line number Diff line number Diff line change
1
+ FROM damianh/dotnet-sdks:6
2
+
3
+ COPY . ./repo/
4
+
5
+ WORKDIR /repo
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
+ docker build \
6
+ -f build.dockerfile \
7
+ --tag dotnet-libs-build .
8
+
5
9
docker run --rm --name hosting-build \
6
10
-v /var/run/docker.sock:/var/run/docker.sock \
7
- -v $PWD :/repo \
8
- -w /repo \
9
- -e FEEDZ_LOGICALITY_API_KEY=$FEEDZ_LOGICALITY_API_KEY \
11
+ -v $PWD /artifacts:/repo/artifacts \
12
+ -v $PWD /.git:/repo/.git \
13
+ -v $PWD /temp:/repo/temp \
14
+ -e NUGET_PACKAGES=/repo/temp/nuget-packages \
10
15
-e BUILD_NUMBER=$GITHUB_RUN_NUMBER \
11
16
--network host \
12
- damianh/ dotnet-sdks:6 \
17
+ dotnet-libs-build \
13
18
dotnet run -p build/Build.csproj -c Release -- " $@ "
Original file line number Diff line number Diff line change
1
+ # Ignore everything in this directory
2
+ *
3
+ # Except this file
4
+ ! .gitignore
You can’t perform that action at this time.
0 commit comments