tags: registry.nova.do/shairport-sync:unstable-${{ env.BRANCH }}
build-args: |
BRANCH=${{ env.BRANCH }}
- ssh: default ${{ secrets.SSH_PRIVATE_KEY }}
\ No newline at end of file
+ ssh: default=${{ secrets.SSH_PRIVATE_KEY }}
\ No newline at end of file
+# syntax=docker/dockerfile:experimental
+
FROM alpine:3.12 AS builder-base
# Version 3.12 is required for now since libplist has breaking changes in v3.13 and above which are not yet standard
# in debian/ubuntu.
RUN git clone https://github.com/mikebrady/alac
WORKDIR /alac
-RUN git pull
RUN autoreconf -fi
RUN ./configure
RUN make
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 mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
+
RUN --mount=type=ssh git clone git@github.com:charlesomer/nqptp.git
WORKDIR /nqptp
# Use development branch for now.
RUN git checkout development
-RUN git pull
RUN autoreconf -fi
RUN ./configure
RUN make
RUN --mount=type=ssh git clone git@github.com:aillwee/shairport-sync.git
WORKDIR /shairport-sync
RUN git checkout "$SHAIRPORT_SYNC_BRANCH"
-RUN git pull
RUN autoreconf -fi
RUN git submodule init
RUN git submodule update