@@ -26,23 +26,20 @@ jobs:
26
26
- name : git mark dirs safe (due to volume mount perms issue)
27
27
run : |
28
28
docker run --rm \
29
+ --mount type=volume,source=rootmount,target=/root \
29
30
--mount type=bind,source=./,target=/app \
30
31
-t hjwp/obeythetestinggoat-book-tester:latest \
31
- bash -c "git config --add safe.directory '*'"
32
- # --global wont work bc it writes to /root which is not persisted
33
- # bash -c "git config --global --add safe.directory '*'
34
- docker run --rm \
35
- --mount type=bind,source=./,target=/app \
36
- -t hjwp/obeythetestinggoat-book-tester:latest \
37
- bash -c "git config --add safe.directory /app/source/chapter_01/superlists"
32
+ bash -c "git config --global --add safe.directory '*'"
38
33
docker run --rm \
34
+ --mount type=volume,source=rootmount,target=/root \
39
35
--mount type=bind,source=./,target=/app \
40
36
-t hjwp/obeythetestinggoat-book-tester:latest \
41
37
bash -c "cat .git/config"
42
38
43
39
- name : test chapter 1
44
40
run : |
45
41
docker run --rm \
42
+ --mount type=volume,source=rootmount,target=/root \
46
43
--mount type=bind,source=./,target=/app \
47
44
-t hjwp/obeythetestinggoat-book-tester:latest \
48
45
bash -c "make test_chapter_01"
0 commit comments