tests / test (pull_request_target) Successful in 6m38s
mirror/github-mirror.sh publishes main and the tags on it to a read-only GitHub mirror, as one extra commit that adds a notice under the README title, so every forge commit is unchanged there and each sync is a fast-forward. A systemd user service and hourly timer run it from a host that can push to GitHub; --settings turns off issues, pull requests and the rest there. A GitHub Actions workflow builds the image on the mirror and pushes it to ghcr.io, freeing runner disk first since the CUDA build of torch is several GB. docker-compose.yml names the image after IMAGE_PREFIX and IMAGE_TAG, so setting them pulls the published image instead of building, and the README says how.
19 lines
493 B
YAML
19 lines
493 B
YAML
services:
|
|
songtrace:
|
|
# built here by default; set IMAGE_PREFIX (and IMAGE_TAG) to pull a
|
|
# published image instead, see the README's quick start
|
|
build: .
|
|
image: ${IMAGE_PREFIX:-}songtrace:${IMAGE_TAG:-latest}
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./config.toml:/config/config.toml:ro
|
|
- ./data:/data
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: 1
|
|
capabilities: [gpu]
|