Skip to content

Commit dfdd0d8

Browse files
committed
Override uid of default user in container to align with GitHub-hosted runners
This resolves a recent regression with GitHub-hosted runners where actions/checkout@v2 fails to create a directory under /__w/_temp/ #104 (comment) actions/checkout#47
1 parent bf471a7 commit dfdd0d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/container.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ jobs:
8282
env:
8383
ref: ${{ github.ref }}
8484

85+
# Override uid of default user in container to align with GitHub-hosted runners
86+
# https://github.com/actions/checkout/issues/47
8587
- name: build image
86-
run: docker build -t "$image:$tag" -f container/${{ matrix.container }}/Dockerfile .
88+
run: docker build --build-arg uid=1001 -t "$image:$tag" -f container/${{ matrix.container }}/Dockerfile .
8789
env:
8890
tag: ${{ steps.tag.outputs.tag }}
8991

0 commit comments

Comments
 (0)