Skip to content

Upgrading ​

This applies to a community that runs a release: Docker Compose (deploy-docker.md), Railway from the image (deploy-railway.md), or a binary. A Railway service that builds from main updates by itself on every merge.

Versions ​

Releases are tagged vX.Y.Z. While the first number is 0:

  • A new patch (0.3.1 → 0.3.2) only fixes things. Upgrading never needs anything from you.
  • A new minor (0.3 → 0.4) adds features. It may also need you to act: a new required variable, a changed default, or a data change worth a backup. The release's Upgrade notes say what.

The image is published as ghcr.io/igorrius/homelander-bot with these tags:

  • 0.3.2, the exact version;
  • 0.3, the newest patch of 0.3;
  • latest, the newest release. It never follows main.

Stay on a minor tag such as 0.3, and move to the next minor deliberately.

How you find out ​

  • Watch releases on GitHub: repository → Watch → Custom → Releases.
  • In the admin panel: a release build asks GitHub once a day for the newest release. When it is newer, the bottom of the admin menu shows "v0.4.0 available" with a link to its release notes. Residents never see it. The request is anonymous and carries nothing about your community; UPDATE_CHECK_DISABLED=true turns it off. Builds from main don't check.

Steps ​

  1. Read the Upgrade notes of every release between yours and the new one, on the Releases page. Your version is in the startup log line listening … version=v0.3.1.
  2. Take a backup. On the admin panel's Backups page, or with docker compose exec homelander /homelander backup. See backups.md. Keep a copy off the server for a minor upgrade.
  3. Upgrade.
    • Within your minor line:
      • Compose: docker compose pull && docker compose up -d.
      • Railway: nothing to do with the one-click template or with patch auto-updates on: Railway installs the patch at night. Otherwise redeploy the service.
    • To a new minor: first change the tag, then do the same.
      • Compose: change the tag in compose.yaml, for example :0.3 → :0.4.
      • Railway from the template: service → Settings → Source, change the image tag, for example ghcr.io/igorrius/homelander-bot:0.3 → :0.4, and deploy.
      • Railway with .railway/railway.ts: change imageTag, then run railway config plan and railway config apply.
      • Binary: download the new archive and replace the file.
  4. Check that /healthz answers {"status":"ok"}, the log shows the new version, and you can log in.
  5. Going back means restoring the backup from step 2 (backups.md → Restore) and then running the older version. Database migrations only move forward, so an older version does not start on a database that a newer one has migrated.

Checking that an image is genuine (optional) ​

Each release image is signed in GitHub Actions without a stored key. With cosign:

bash
cosign verify ghcr.io/igorrius/homelander-bot:0.3 \
  --certificate-identity-regexp '^https://github.com/igorrius/homelander-bot/\.github/workflows/release\.yml@refs/tags/v' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

To check the release's files, download them next to SHA256SUMS and SHA256SUMS.sigstore.json, then:

bash
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
  --certificate-identity-regexp '^https://github.com/igorrius/homelander-bot/\.github/workflows/release\.yml@refs/tags/v' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c SHA256SUMS --ignore-missing

With the GitHub CLI, gh attestation verify oci://ghcr.io/igorrius/homelander-bot:0.3 --repo igorrius/homelander-bot checks where the image was built.

Released under the Apache License 2.0.