Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wkornewald committed Nov 12, 2023
1 parent a7036c7 commit 497b58a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,22 @@ jobs:
mkdir tmp
cd tmp
docker pull --platform linux/amd64 ghcr.io/${{ github.repository }}:latest || exit 0
img=$(docker create --platform linux/amd64 ghcr.io/${{ github.repository }}:latest)
docker export $img -o latest.tar
docker rm $img
if docker pull --platform linux/amd64 ghcr.io/${{ github.repository }}:latest; then
img=$(docker create --platform linux/amd64 ghcr.io/${{ github.repository }}:latest)
docker export $img -o latest.tar
docker rm $img
img=$(docker create --platform linux/amd64 ghcr.io/${{ github.repository }}:test)
docker export $img -o test.tar
docker rm $img
img=$(docker create --platform linux/amd64 ghcr.io/${{ github.repository }}:test)
docker export $img -o test.tar
docker rm $img
mkdir test
mkdir latest
tar xf test.tar -C test --exclude={var/{log,cache},lib/apk/db/scripts.tar}
tar xf latest.tar -C latest --exclude={var/{log,cache},lib/apk/db/scripts.tar}
if diff -q -r --no-dereference test latest; then
echo "CHECKEQUALS=true" >> "$GITHUB_OUTPUT"
mkdir test
mkdir latest
tar xf test.tar -C test --exclude={var/{log,cache},lib/apk/db/scripts.tar}
tar xf latest.tar -C latest --exclude={var/{log,cache},lib/apk/db/scripts.tar}
if diff -q -r --no-dereference test latest; then
echo "CHECKEQUALS=true" >> "$GITHUB_OUTPUT"
fi
fi
- name: Build and push
uses: docker/build-push-action@v5
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ You'll need to mount these volumes:

## Zeroconf/Bonjour

Service discovery is not built into this image. You'll need, for example, Avahi either on the host or in a separate Docker container. If it's on the host you can create your service definition like this:
Service discovery is not built into this image, but you can use the [avahi](https://github.com/ensody/avahi) Docker image which also contains an SMB example in the README.

If you already have Avahi installed on the host you can alternatively create your service definition like this:

```sh
cat > /etc/avahi/services/smb.service <<EOF
Expand All @@ -54,7 +56,7 @@ cat > /etc/avahi/services/smb.service <<EOF
EOF
```

Note that the first service sets up Time Machine discovery. If you don't use macOS you can optionally remove it, but it shouldn't hurt either.
Note that the first service entry sets up Time Machine discovery for macOS. You can remove that entry if you prefer.

## Example

Expand Down

0 comments on commit 497b58a

Please sign in to comment.