File tree Expand file tree Collapse file tree 5 files changed +30
-13
lines changed Expand file tree Collapse file tree 5 files changed +30
-13
lines changed Original file line number Diff line number Diff line change @@ -113,4 +113,7 @@ RUN `
113
113
&& setx NBL_CI_MODE "ON"
114
114
115
115
WORKDIR ${THIS_PROJECT_NABLA_DIRECTORY}
116
+
117
+ COPY --from=dcr.devsh.eu/nabla/source/git-cache:latest /gitcache/.git ./.git
118
+
116
119
ENTRYPOINT ["cmd.exe" , "/K" ]
Original file line number Diff line number Diff line change 1
1
services :
2
+ git-cache-updater :
3
+ build :
4
+ context : ./git-cache
5
+ dockerfile : Dockerfile
6
+ image : dcr.devsh.eu/nabla/source/git-cache:latest
7
+ container_name : git.cache.update
8
+ networks :
9
+ docker_default :
2
10
nabla :
3
11
build :
4
12
context : .
@@ -10,18 +18,15 @@ services:
10
18
environment :
11
19
- THIS_PROJECT_WORKING_DIRECTORY=${THIS_PROJECT_WORKING_DIRECTORY}
12
20
- THIS_PROJECT_NABLA_DIRECTORY=${THIS_PROJECT_NABLA_DIRECTORY}
13
- volumes :
14
- - nabla-cache-git:${THIS_PROJECT_NABLA_DIRECTORY}/.git
15
21
networks :
16
22
docker_default :
17
23
deploy :
18
24
resources :
19
25
limits :
20
26
cpus : ' 6'
21
27
memory : 12G
22
-
23
- volumes :
24
- nabla-cache-git :
28
+ depends_on :
29
+ - git-cache-updater
25
30
26
31
networks :
27
32
docker_default :
Original file line number Diff line number Diff line change 42
42
`
43
43
&& git init `
44
44
`
45
- && git remote add origin https://github.com/Devsh-Graphics-Programming/Nabla.git
45
+ && git remote add origin https://github.com/Devsh-Graphics-Programming/Nabla.git
46
46
47
47
ENTRYPOINT ["cmd.exe" , "/K" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -38,6 +38,22 @@ if %errorlevel% neq 0 (
38
38
exit /b %errorlevel%
39
39
)
40
40
41
+ docker exec -i -t %CONTAINER_ID% cmd /C " for /d %% i in (*) do if /i not %% i==.git rmdir /s /q %% i"
42
+
43
+ if %errorlevel% neq 0 (
44
+ echo " Error: failed to clean up files"
45
+ docker stop %CONTAINER_ID%
46
+ exit /b %errorlevel%
47
+ )
48
+
49
+ docker exec -i -t %CONTAINER_ID% cmd /C " for %% i in (*) do if /i not %% i==.git del /q %% i"
50
+
51
+ if %errorlevel% neq 0 (
52
+ echo " Error: failed to clean up files"
53
+ docker stop %CONTAINER_ID%
54
+ exit /b %errorlevel%
55
+ )
56
+
41
57
REM Stop the container before committing
42
58
docker stop %CONTAINER_ID%
43
59
if %errorlevel% neq 0 (
You can’t perform that action at this time.
0 commit comments