]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Try this.
authorCharles <charles@zyndex.co.uk>
Thu, 6 May 2021 01:07:05 +0000 (02:07 +0100)
committerCharles <charles@zyndex.co.uk>
Thu, 6 May 2021 01:07:05 +0000 (02:07 +0100)
.github/workflows/docker-build-master.yaml
docker/Dockerfile

index 60ab6048a023574c4465eb0fe2173f3118ed0734..be7f644eb17b5cc45404151d12af10cf23690611 100644 (file)
@@ -35,4 +35,4 @@ jobs:
           tags: registry.nova.do/shairport-sync:unstable-${{ env.BRANCH }}
           build-args: |
             BRANCH=${{ env.BRANCH }}
-          ssh: ${{ secrets.SSH_PRIVATE_KEY }}
\ No newline at end of file
+          ssh: github=${{ secrets.SSH_PRIVATE_KEY }}
\ No newline at end of file
index b9098c8fd9c25fbe69842192468c8d343ba52948..d12ad3528b6a905b1b7e507f1cfda56ba313d4b6 100644 (file)
@@ -49,7 +49,10 @@ COPY --from=builder-alac /usr/local/lib/libalac.* /usr/local/lib/
 COPY --from=builder-alac /usr/local/lib/pkgconfig/alac.pc /usr/local/lib/pkgconfig/alac.pc
 COPY --from=builder-alac /usr/local/include /usr/local/include
 
-RUN --mount=type=ssh git clone git@github.com:charlesomer/nqptp.git
+# TODO: Remove when no longer pulling from private repos.
+RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
+
+RUN --mount=type=ssh,id=github git clone git@github.com:charlesomer/nqptp.git
 WORKDIR /nqptp
 # Use development branch for now.
 RUN git checkout development
@@ -59,7 +62,7 @@ RUN make
 RUN make install
 WORKDIR /
 
-RUN --mount=type=ssh git clone git@github.com:aillwee/shairport-sync.git
+RUN --mount=type=ssh,id=github git clone git@github.com:aillwee/shairport-sync.git
 WORKDIR /shairport-sync
 RUN git checkout "$SHAIRPORT_SYNC_BRANCH"
 RUN autoreconf -fi