Add Gitea Actions registry publish workflow and Unraid auto-update script
Build and Publish Docker Image / test-and-publish (push) Failing after 2m25s
Build and Publish Docker Image / test-and-publish (push) Failing after 2m25s
This commit is contained in:
1 parent
84b08f0cdb
commit
18c492488c
5 files changed
+90
-1
No files matched your search
@@ -64,4 +64,24 @@ docker compose up -d --build
|
||||
- Scheme: `http` (Nginx Proxy Manager handles HTTPS/SSL termination for your subdomain)
|
||||
- Forward Hostname / IP: your Unraid IP (or `professor-oak-tracker` if both containers share a custom Docker bridge network like `proxynet`)
|
||||
- Forward Port: `28473`
|
||||
- Enable Websockets: not required, standard HTTPS/SSL termination works out of the box (for example, `https://oak.trevorstocks.ca/`)
|
||||
|
||||
---
|
||||
|
||||
## Automatic Updates on Unraid (Instead of Manual `git pull`)
|
||||
|
||||
Unraid's Docker dashboard **"apply update"** badge only checks **remote Docker registries**—containers built locally with `docker compose up -d --build` will show updates as `not available`. Choose either approach below:
|
||||
|
||||
### Way 1 — Unraid Dashboard **"apply update"** Button (via Gitea Container Registry)
|
||||
|
||||
1. In Gitea (`git.trevorstocks.ca`), make sure **Packages** and **Actions** (with a Docker runner) are enabled.
|
||||
2. Push to `main`: [`.gitea/workflows/docker-publish.yml`](./.gitea/workflows/docker-publish.yml) runs `npm test` and pushes `git.trevorstocks.ca/faroegames/oaktracker:latest`.
|
||||
3. In Gitea's **Packages** tab for `oaktracker`, set the container package visibility to **Public** (or run `docker login git.trevorstocks.ca` once in the Unraid terminal if keeping it private—note Unraid's automatic UI update checker works most reliably with public HTTPS packages; private custom registries may require clicking **Force Update** or using Watchtower).
|
||||
4. On Unraid, add the container in **Docker → Add Container** (rather than Compose) with:
|
||||
- **Name:** `professor-oak-tracker`
|
||||
- **Repository:** `git.trevorstocks.ca/faroegames/oaktracker:latest`
|
||||
- **Port:** Container `28473` → Host `28473`
|
||||
- Now Unraid detects new pushes in its Docker tab (or Watchtower can auto-update it).
|
||||
|
||||
### Way 2 — Hands-Free Auto-Rebuild via Unraid **User Scripts** (Zero Gitea Runner Needed)
|
||||
|
||||
If you don't run a Gitea Actions Runner, keep building locally with `docker compose` and add [`scripts/unraid-git-update.sh`](./scripts/unraid-git-update.sh) to Unraid's **User Scripts** plugin on a schedule (e.g., `*/15 * * * *`). It checks `git fetch origin main` and only rebuilds/restarts when a new commit is pushed to `git.trevorstocks.ca`.
|
||||
Reference in new issue
Block a user