Skip to content

Commit a007e39

Browse files
committed
Mark /source as safe directory for git (used in CI mounts)
1 parent 7202504 commit a007e39

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

debian-armv6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ RUN apt-get -y install \
6060
libssl-dev \
6161
libraspberrypi-dev \
6262
libglib2.0-dev
63+
64+
# Mark /source as safe directory for git (used in CI mounts)
65+
RUN git config --system --add safe.directory /source
6366

6467
# Compile and install CMake
6568
ENV CMAKE_URL="https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}"

fedora

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ RUN dnf -y group install 'development-tools' 'c-development' 'rpm-development-to
5252
alsa-lib-devel \
5353
libftdi-devel \
5454
systemd-devel
55+
56+
# Mark /source as safe directory for git (used in CI mounts)
57+
RUN git config --system --add safe.directory /source
5558

5659
# Install CMake on amd64 and arm64
5760
ENV CMAKE_URL="https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}"

ubuntu_debian

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ RUN apt-get -y install \
6363
libssl-dev \
6464
libglib2.0-dev
6565

66+
# Mark /source as safe directory for git (used in CI mounts)
67+
RUN git config --system --add safe.directory /source
68+
6669
# install X11/XCB on Ubuntu for all arch and on Debian for amd64
6770
# install libraspberrypi-dev on Debian for arm64/armhf
6871
RUN if [ "$DIST" = "ubuntu" ] || [ "$TARGETPLATFORM" = "linux/amd64" ]; then \

0 commit comments

Comments
 (0)