Maintainer notes for building and publishing the container images, and a quick end-to-end smoke test. End users only need README.md.
The project ships two images on GHCR:
ghcr.io/kodestar/audiosilo-web- the web player (theaudiosilo-frontendExpo web export, built withbaseUrl=/web). Just static files.ghcr.io/kodestar/audiosilo-server- this server, with a pinned web build baked in at/app/webviaCOPY --from. This is the deployable image.
The server image pins a web version, so server + bundled player are always a
known-compatible pair. Native apps negotiate via GET /api/v1/server capability
flags. (Owner kodestar is from the module path; the CI workflows use
${{ github.repository_owner }} and self-adjust - only the Dockerfile's default
WEB_IMAGE hardcodes the owner.)
- After the first push, make both GHCR packages public, or
docker login ghcr.ioon the deploy host so it can pull private images.
Push to main (or tag v*). .github/workflows/web.yml exports the web build
(baseUrl=/web from app.json) and pushes ghcr.io/kodestar/audiosilo-web:latest
(and :<version> on tags).
Push a tag v* (or run the server image workflow manually on that tag,
--ref v<version>). A push to main, or a manual run on main, publishes only
:edge and sha-<short> (see
Testing main before a release); a manual run
on main with a pinned web_version gets only sha-<short>.
.github/workflows/image.yml builds the multi-stage Dockerfile, baking in
ghcr.io/kodestar/audiosilo-web:latest, and pushes
ghcr.io/kodestar/audiosilo-server. Publish the web image first - this build
pulls it.
Build locally instead:
docker login ghcr.io
docker build --build-arg WEB_IMAGE=ghcr.io/kodestar/audiosilo-web:latest \
-t ghcr.io/kodestar/audiosilo-server:dev .
docker push ghcr.io/kodestar/audiosilo-server:devThe web image is published for linux/amd64 only (static files, which any
platform can copy). The WEB_PLATFORM build arg (default linux/amd64) makes
every target, and a build on an arm64 host, take that copy;
scripts/fetch-web-player.sh reads the same variable from the environment. Set
it only for a locally built web image of another platform.
The same v* tag also triggers .github/workflows/release.yml (GoReleaser,
.goreleaser.yml): self-contained cross-platform binaries for home users who
don't want Docker. It embeds the web player (-tags embedplayer, populated from
the pinned web image by scripts/fetch-web-player.sh), producing .tar.gz/.zip
archives, .deb/.rpm packages and checksums.txt as a draft GitHub Release
to review and publish. The notes end with GoReleaser's release.footer, which
also carries the one sponsor line ("AudioSilo is free; sponsors keep it going",
linking GitHub Sponsors); keep it when you rewrite the notes by hand, and add
nothing more (no tiers, no rewards). ffmpeg/ffprobe are not bundled - the server uses a local
copy or auto-downloads one into <data>/tools on first run (see DISTRIBUTION.md).
Publish the web image first (step 1) so the embedded player matches. The full
distribution strategy (and the deferred desktop installers/tray) lives in the
workspace DISTRIBUTION.md.
CI's snapshot job (ci.yml) runs goreleaser check and builds the linux_amd64
target of every pull request (--snapshot --single-target, before-hooks included)
and boots it with scripts/smoke-boot.sh, the boot check of the release's smoke
test below, so a build that breaks or doesn't start shows before a tag.
Validate the GoReleaser config locally without releasing:
goreleaser check
goreleaser build --snapshot --clean --skip=before --single-targetA Linux target needs a C compiler named by its triplet (x86_64-linux-gnu-gcc or
aarch64-linux-gnu-gcc): on Debian/Ubuntu gcc + libc6-dev give the host's own
architecture its one, gcc-<triplet> + libc6-dev-<arch>-cross the other's.
--single-target builds the host's target only (set GOOS/GOARCH for another);
on a Mac, run it in a golang:1.26 container with goreleaser installed.
--skip=before also skips the admin console build (scripts/build-admin.sh --build-only, a before-hook); run scripts/build-admin.sh
first if the snapshot should include the console rather than its "not built" page.
linuxserver/docker-audiosilo
builds lscr.io/linuxserver/audiosilo (the image Unraid's Community Applications
lists) from this repo's GitHub Releases. Nothing to do per release: their
external_trigger workflow polls releases/latest hourly and, on a new tag, builds
<tag>-ls<N> (e.g. v2.1.0-ls1) from the linux archives. That makes these a
contract:
- Publishing the draft is the trigger, so publish only once the tag's
release.ymlrun is green: its smoke test (below) runs after the draft is uploaded. Drafts and prereleases are invisible toreleases/latest, and a tag with a pre-release suffix (v2.8.0-rc.1) is drafted as a pre-release (release.prerelease: autoin.goreleaser.yml): keep Set as a pre-release ticked when publishing one. - Archive names and layout. Their Dockerfile downloads
releases/download/v<version>/audiosilo_<version>_linux_{amd64,arm64}.tar.gz(<version>is the tag without itsv) and takes theaudiosilobinary from the archive root, so keep thevtags, the names and the flat layout. - A static binary: the image is Alpine (musl). The Linux binaries build the
native SQLite engine in (cgo) but link it statically against glibc, as the
Docker image does (
.goreleaser.yml), so they need no libc at all. - The web player stays embedded (
-tags embedplayer): the image sets noAUDIOSILO_WEB_DIR. - How it runs:
audiosilo --data /configand nothing else, so it relies on the headless first run (the admin banner in the log), the self-signed TLS default on port 8080, and writes staying under--data(it supports a read-only root filesystem). Its readiness check readsbind:from/config/config.yaml, port 8080 when there is none: config.yaml holds only what differs from the defaults (server#252), so a bind left at its default is not in the file, and the default port must stay 8080 (or the image's fallback change with it).
release.yml's last step checks the archive side of this while the release is still
a draft: both archives' exact names and layout, each Linux binary's tags
(embedplayer and the native engine's), CGO_ENABLED=1, architecture and static
linking (no ELF interpreter), each Linux binary running (arm64 under qemu) and
reporting the release's version, the macOS and Windows binaries' CGO_ENABLED=0, and
an amd64 boot run the way the image runs it (--data only, self-signed TLS) serving
/healthz and /web/ and logging engine=native (scripts/smoke-boot.sh, which
CI's snapshot job also runs on every pull request).
docker compose up -d; grab the admin password fromdocker compose logs.- Open
/admin, sign in, add a library, create a user, click Copy invite. - Web: open the invite link → connect screen → Open web player (or visit
/web) → it exchanges the token and drops you into the player. - Native: run the app from audiosilo-frontend (
expo start/ a dev build), scan the QR or open the invite to pair. For tap-to-open-app from the OS, setapp_links(and serve over HTTPS on the claimed domain).
Once the release is published, run /blog release server v<version> from the
workspace (see "Cut a release" in the workspace CLAUDE.md): the release post,
the drafted feature posts that shipped, and the posts the release changes.
Every push to main publishes ghcr.io/kodestar/audiosilo-server:edge: server
main with the newest audiosilo-web:latest (the player's main) baked in. It
never moves :latest, which only a v* tag publishes. Each main build that
finishes is also tagged sha-<short>, to pin one commit (a newer push cancels a
build still running, so a superseded commit gets no tag). The console reports the
version as dev-<short sha> (the same 7 characters as the sha- tag), and the
update check ignores it. Release images carry no sha- tag: pin a release by its
version.
- Player-only changes. A push to the frontend's
mainrefreshesaudiosilo-web:latestbut does not rebuild:edge. Rebuild it by hand:gh workflow run image.yml -R KodeStar/audiosilo-server --ref main. - Run edge as its own container, on a copy of the data dir. An edge build may
run database migrations the last release can't undo, so going back to
:lateston the same data may not work. Nor is it a tag swap on a LinuxServer.io install: the ghcr image keeps its data in/data(seedocker-compose.yml), not the LSIO image's/config.
scripts/build-web.sh # builds the frontend export, prints the AUDIOSILO_WEB_DIR to use
AUDIOSILO_WEB_DIR=~/dev/audiosilo/audiosilo-frontend/dist AUDIOSILO_TLS_MODE=off \
./bin/audiosilo --data ./data