Updates to docker build process.
This commit is contained in:
@@ -39,4 +39,4 @@ jobs:
|
||||
tags: registry.nova.do/shairport-sync:unstable-${{ env.SHAIRPORT_SYNC_BRANCH }}
|
||||
build-args: |
|
||||
SHAIRPORT_SYNC_BRANCH=${{ env.SHAIRPORT_SYNC_BRANCH }}
|
||||
ssh: github=${{ env.SSH_AUTH_SOCK }} # Can be removed when no longer pulling from private repos.
|
||||
ssh: default=${{ env.SSH_AUTH_SOCK }} # Can be removed when no longer pulling from private repos.
|
||||
+1
-1
@@ -54,7 +54,7 @@ COPY --from=builder-alac /usr/local/include /usr/local/include
|
||||
# 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:mikebrady/nqptp.git
|
||||
RUN --mount=type=ssh git clone git@github.com:mikebrady/nqptp.git
|
||||
WORKDIR /nqptp
|
||||
# Use development branch for now.
|
||||
RUN git checkout development
|
||||
|
||||
+1
-1
@@ -6,7 +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 --build-arg SHAIRPORT_SYNC_BRANCH=unstable-development -t registry.nova.do/shairport-sync:unstable-development .
|
||||
docker buildx build --ssh github=$SSH_AUTH_SOCK --platform linux/arm/v7 -f ./docker/Dockerfile --build-arg SHAIRPORT_SYNC_BRANCH=development -t registry.nova.do/shairport-sync:unstable-development .
|
||||
```
|
||||
|
||||
`SHAIRPORT_SYNC_BRANCH` is required to ensure the image is built using the expected branch.
|
||||
Reference in New Issue
Block a user