summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-04-20 14:20:39 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2022-04-20 14:45:52 -0400
commit926efbd296dc5d80cc04fd6a0dfc4e7726d5799c (patch)
tree45982e4b75705a5c9e4c643e78e5224bb6a21c2a /.github
parent00612f79171f2e8b13afbaf15be0ced829c821c9 (diff)
downloadlibgit2-926efbd296dc5d80cc04fd6a0dfc4e7726d5799c.tar.gz
ci: use the runner's uid/gid
Use the runner's uid/gid for the containers for sanity when sharing files across volumes.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d9ca82c86..774381faa 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -69,7 +69,7 @@ jobs:
if [ "${{ matrix.container.base }}" != "" ]; then
BASE_ARG="--build-arg BASE=${{ matrix.container.base }}"
fi
- docker build -t ${{ env.docker-registry-container-sha }} ${BASE_ARG} -f ${{ env.dockerfile }} .
+ docker build -t ${{ env.docker-registry-container-sha }} --build-arg UID=$(id -u) --build-arg GID=$(id -g) ${BASE_ARG} -f ${{ env.dockerfile }} .
docker tag ${{ env.docker-registry-container-sha }} ${{ env.docker-registry-container-latest }}
docker push ${{ env.docker-registry-container-sha }}
docker push ${{ env.docker-registry-container-latest }}