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:
@@ -223,10 +223,22 @@ Steps:
|
||||
manifest values); remove (database, Authelia client, image and catalog
|
||||
entry gone)
|
||||
- [ ] David: sign in to `https://trial-app.dev.fedcom.net/` in a browser
|
||||
2. [ ] Publishing: a Gitea Actions workflow in new apps that builds the image
|
||||
on a version tag and pushes it to the repository's Gitea registry; and
|
||||
`coreapp publish` for developers without a runner. Pin the image by
|
||||
digest in what the Core installs? Private registries need a pull token
|
||||
2. Publishing (2026-12-03): `coreapp publish` builds the image, pushes
|
||||
`image:version` to the registry in `coreapp.toml`, never replacing a
|
||||
published version, and tags the commit `v<version>`; new apps also get
|
||||
`.gitea/workflows/publish.yml`, which does the same on a `v*` tag.
|
||||
Federated's Gitea is 1.27.2 with its container registry on the same
|
||||
host; the Core's own `gitearunner` registers with the Core's Gitea only,
|
||||
so whether developers on gitea.federated.computer have a runner that can
|
||||
use Docker is unknown. Tested against a local registry. `docker
|
||||
manifest inspect` reported "no such manifest" for an image that existed,
|
||||
so the check uses `docker buildx imagetools inspect`, and any error but
|
||||
"not found" stops the publish
|
||||
- [ ] David: publish a test app to gitea.federated.computer
|
||||
(`docker login` with a `write:package` token)
|
||||
- [ ] Run the workflow on a repository with a runner
|
||||
- [ ] Pin the image by digest in what the Core installs? Private
|
||||
packages need a pull token on the Core
|
||||
3. [ ] Install from a URL on the Core: `coreapps install <repo-url>[@tag]`
|
||||
(git clone at the tag, read `coreapp.toml` and `icon.png` only, pull the
|
||||
image). Show the source and what the app needs before installing
|
||||
|
||||
Reference in New Issue
Block a user