]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Adding back branch specification just in case.
authorCharles <32498151+charlesomer@users.noreply.github.com>
Thu, 20 May 2021 12:10:23 +0000 (13:10 +0100)
committerCharles <32498151+charlesomer@users.noreply.github.com>
Thu, 20 May 2021 12:10:23 +0000 (13:10 +0100)
docker/Dockerfile
docker/README.md

index c714462bd9424e9235fa7563e6ebaf1332e280f5..17ed2451ccf8f4050b70bc1ccd63912e10f917ae 100644 (file)
@@ -42,6 +42,11 @@ RUN make install
 # Shairport Sync Build System:
 FROM builder-base AS builder-sps
 
+# This will be modified by the Github Action Workflow and is required
+# to ensure the correct branch is being used.
+ARG SHAIRPORT_SYNC_BRANCH
+RUN test -n "$SHAIRPORT_SYNC_BRANCH"
+
 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
@@ -61,6 +66,7 @@ WORKDIR /
 
 WORKDIR /shairport-sync
 COPY . .
+RUN git checkout $SHAIRPORT_SYNC_BRANCH
 RUN git submodule init
 RUN git submodule update
 RUN autoreconf -fi
index 2c2211204ce5893bf79971417e41f64051798873..4e10daae32f4c68e2ca8648302b0a0040e11696c 100644 (file)
@@ -6,5 +6,7 @@ Available at: https://hub.docker.com/r/mikebrady/shairport-sync
 
 TODO: remove `--ssh` when going public as this is only for private repos.
 ```
-docker buildx build --ssh github=$SSH_AUTH_SOCK --platform linux/arm/v7 -f ./docker/Dockerfile -t registry.nova.do/shairport-sync:unstable-development .
-```
\ No newline at end of file
+docker buildx build --ssh github=$SSH_AUTH_SOCK --platform linux/arm/v7 -f ./docker/Dockerfile --build-arg SHAIRPORT_SYNC_BRANCH=charles-dev -t registry.nova.do/shairport-sync:unstable-development .
+```
+
+`SHAIRPORT_SYNC_BRANCH` is required to ensure the image is built using the expected branch.
\ No newline at end of file