coreapp publish, and a Gitea Actions workflow in new apps

coreapp publish builds the release image, pushes image:version to the
registry named in coreapp.toml and tags the commit v<version>. It refuses
local-only image names (suggesting one from the git remote), uncommitted
changes, a version already published and a tag already on another
commit. The existence check uses docker buildx imagetools inspect:
docker manifest inspect reported "no such manifest" for an image that
existed. Any error but "not found" stops the publish.

New apps get .gitea/workflows/publish.yml, which does the same on a v*
tag, for repositories with a runner that can use Docker (secrets
REGISTRY_USER and REGISTRY_TOKEN). Untested: needs a runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 14:15:47 -07:00
co-authored by Claude Opus 5.5
parent 89585e81aa
commit ed2841f092
6 changed files with 269 additions and 7 deletions
+7
View File
@@ -83,10 +83,17 @@ each new app explains the files and the settings it gets.
| `coreapp check` | It answers at `https://<name>.<domain><health>` with a valid certificate |
| `coreapp status` / `logs [-f]` / `shell [command]` | Its container, its log, a shell in it (or one command, without a terminal) |
| `coreapp list` | The apps on the Core installed this way |
| `coreapp publish [--platform <list>]` | Build the release image, push it to the registry in `coreapp.toml` (`image:version`, never replacing a published version) and tag the commit `v<version>` |
| `coreapp remove` | Uninstall it from the Core, with its database and sign-in client (asks first) |
`COREAPP_VM` picks the VM (default `coreserver`).
To publish, set `image` to your registry (for Gitea,
`<gitea-host>/<owner>/<repo>`), `docker login` to it once, commit, and run
`coreapp publish`. New apps also have a Gitea Actions workflow
(`.gitea/workflows/publish.yml`) that does the same when a `v*` tag is
pushed, for repositories with a runner that can use Docker.
Installing and removing go through the Core's own `installapp` and
`uninstallapp`, so the app shows up in Superpanel. The installer gives apps
no `MONITOR` line, so they aren't added to Federated's external monitoring.