Skip to content

Commit 0f3cb38

Browse files
committed
try mounting root home
1 parent fb95b07 commit 0f3cb38

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,20 @@ jobs:
2626
- name: git mark dirs safe (due to volume mount perms issue)
2727
run: |
2828
docker run --rm \
29+
--mount type=volume,source=rootmount,target=/root \
2930
--mount type=bind,source=./,target=/app \
3031
-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 '*'"
3833
docker run --rm \
34+
--mount type=volume,source=rootmount,target=/root \
3935
--mount type=bind,source=./,target=/app \
4036
-t hjwp/obeythetestinggoat-book-tester:latest \
4137
bash -c "cat .git/config"
4238
4339
- name: test chapter 1
4440
run: |
4541
docker run --rm \
42+
--mount type=volume,source=rootmount,target=/root \
4643
--mount type=bind,source=./,target=/app \
4744
-t hjwp/obeythetestinggoat-book-tester:latest \
4845
bash -c "make test_chapter_01"

0 commit comments

Comments
 (0)