Publishing a Coreapp
Release a version of your app so any Core can install it from its repository.
A published Coreapp is a tagged commit in its git repository, plus its image in a container registry. A Core installs it by reading coreapp.toml and icon.png at the release’s tag and pulling the image with the same version.
These steps use Gitea, which has a container registry on the same host as its repositories. Any git host and registry work the same way.
Before the first release
Set
imageincoreapp.tomlto your registry. On Gitea, that’s<gitea-host>/<owner>/<repository>in lowercase, for examplegitea.example.com/my-team/timesheets.coreapp publishsuggests it from your git remote.Log in to the registry once on your computer, with a Gitea token that has write access to package:
docker login gitea.example.com
Publish a release
Set
versionincoreapp.toml. Raise it for every release: a version that’s already published is never replaced.Commit everything.
coreapp publishrefuses uncommitted changes.Publish:
coreapp publishIt builds the image for
linux/amd64, pushes it asimage:version, and tags the commitv<version>. For Cores on ARM servers too, add--platform linux/amd64,linux/arm64.Push the commit and the tag:
git push && git push origin v1.2.0
Cores can now install it with coreapps install https://gitea.example.com/my-team/timesheets, and update to it with coreapps update timesheets. See Installing a Coreapp.
Check a release
Before telling people about a release, install it the way they will, from its repository, on the Core in your VM:
coreapp install https://gitea.example.com/my-team/timesheets
On the same Core, an app you deploy from your folder with coreapp deploy and one installed from its repository are the same app, with the same data.
Fixing a release
A Core remembers the exact image it installed for each release, and refuses a different image pushed under the same version. To fix a release, publish a new version.
Private apps
Your repository and package can stay private. Each Core that installs the app then needs a read-only token for them. See Private Coreapps.