From 1daea030782460a4f6832054a7dca32241a8e57a Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 28 Sep 2022 22:54:59 +0200 Subject: [PATCH] build/bot: fix git error --- build/bot/ppa-build.dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/bot/ppa-build.dockerfile b/build/bot/ppa-build.dockerfile index 341d202530..5aefcd7ded 100644 --- a/build/bot/ppa-build.dockerfile +++ b/build/bot/ppa-build.dockerfile @@ -1,9 +1,16 @@ FROM ubuntu +# Install build tools. RUN apt-get update RUN apt-get -yq --no-install-suggests --no-install-recommends install devscripts debhelper dput fakeroot golang git +# Add the ssh key of launchpad.net. RUN mkdir -p ~/.ssh && echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts +# The repo checkout is mounted to /source. WORKDIR /source + +# Prevent git error because the owner of /source does not exist in the Docker container. +RUN git config --global --add safe.directory /source + ENTRYPOINT build/bot/ppa-build.sh