Browse documentation
Fountain handbook

Fountain versions and upgrades

Read Fountain version numbers, find and check the files each release publishes, and upgrade a forge while keeping its installed extensions compatible.

On this page

Version numbers

A Fountain version is the upstream Forgejo version followed by Fountain's release number: 15.0.10-fountain.3 is the third Fountain release based on Forgejo 15.0.10. The Git tag and GitHub release add a v prefix, v15.0.10-fountain.3, and the container image uses the version without it as its tag.

The executable reports a full version with an upstream compatibility suffix, 15.0.10-fountain.3+gitea-1.22.0, in fountain --version and at /api/v1/version.

Published versions are never replaced. Every source change gets a new release number, and there is no latest tag. Pin an exact version, or better, the image digest recorded in release.json.

Release assets

For version V, the GitHub release vV carries:

File Contents
fountain-V-linux-amd64.gz The executable, copied from the tested image
fountain-V-source.tar.gz The exact Git archive of the release commit, including the SDK
forgejo-src-V+gitea-1.22.0.tar.gz Prepared source with vendored Go dependencies and generated assets, buildable with the upstream Makefile
LICENSE GPL-3.0-or-later
SHA256SUMS SHA-256 checksums of every other attachment
release.json Release metadata, described below

The matching image is ghcr.io/veighnsche/fountain:V, a native linux/amd64 image whose OCI labels carry the same version and source revision.

Release metadata

release.json binds the release's parts together. Schema 1 contains:

Field Meaning
schema Metadata schema, 1
version Release version, for example 15.0.10-fountain.3
source_commit Full Git commit the release was built from
source_archive File name of the Git source archive
source_sha256 SHA-256 of the Git source archive
prepared_source File name of the prepared source archive
prepared_source_sha256 SHA-256 of the prepared source archive
image Image reference by digest, ghcr.io/veighnsche/fountain@sha256:...
image_config_digest Configuration digest of the image that passed release testing
platform linux/amd64
extension_protocol Extension manifest protocol the host accepts
browser_contract Browser mount contract version the host implements

To run exactly what was released, read the digest and use it in place of the tag:

jq -r .image release.json

These checksums and digests are release provenance. They are not a signed attestation or a claim of bit-for-bit reproducible builds.

Upgrade a container installation

  1. Read the release notes and the target release.json.
  2. Back up the data volume while the forge is stopped.
  3. Pull the new image, then replace the container with one that mounts the same volume and environment.
FOUNTAIN_VERSION=15.0.10-fountain.3
docker pull ghcr.io/veighnsche/fountain:"$FOUNTAIN_VERSION"
docker stop fountain
docker rm fountain
docker run -d --name fountain \
  -p 3000:3000 -p 2222:22 \
  -v fountain-data:/data \
  -e FORGEJO__server__ROOT_URL=http://localhost:3000/ \
  -e FORGEJO__server__SSH_PORT=2222 \
  ghcr.io/veighnsche/fountain:"$FOUNTAIN_VERSION"

With Compose, change the image: line and run docker compose up -d. For the binary, verify and install the new executable as in Run the Fountain binary, then restart the service. Fountain upgrades its database schema on start, as Forgejo does. Installed packages, their requested state and their private data stay in place.

Keep extensions compatible

Two integers define what an extension must match. Both are published in release.json.

Value Where an extension declares it What happens on mismatch
extension_protocol (currently 1) Manifest protocol and catalog fountain_protocol The manifest is rejected, so the package is not started
browser_contract (currently 1) Catalog browser_contract, and the version each browser module checks at mount A catalog entry with another value makes the whole catalog invalid, and the host refuses to start with extensions enabled

Matching integers are necessary but not sufficient: an extension may rely on capabilities or APIs added in a particular release. Build extensions against the SDK from the same release tag as the host — it is in the sdk/ directory of the source archive — and check each package's manifest against the target release before upgrading.

When you use a verified catalog, update the catalog and the host together so that every entry matches the new host.

Source and licenses

Fountain is GPL-3.0-or-later. Individual files and third-party components keep their own notices, including the MIT notices on the extension SDK. The executable serves its bundled notices at /assets/licenses.txt. If you redistribute Fountain, provide the matching source archives and notices alongside it.

Continue

Enable extensions on the upgraded forge, or check the Extension configuration reference.