Skip to content

ci: migrate server image to ghcr + fix broken Docker build - #65

Merged
amitpaz1 merged 1 commit into
mainfrom
ci/docker-ghcr-migration
Jun 22, 2026
Merged

ci: migrate server image to ghcr + fix broken Docker build#65
amitpaz1 merged 1 commit into
mainfrom
ci/docker-ghcr-migration

Conversation

@amitpaz1

Copy link
Copy Markdown
Member

Migrates the lore server image off the personal pazgaz/lore Docker Hub repo to ghcr.io/agentkitai/lore, and fixes the build that has been broken since ~March.

ghcr migration (matches agentlens)

  • `docker.yml` now pushes to `ghcr.io/agentkitai/lore` with the built-in `GITHUB_TOKEN` (`packages: write`) — no Docker Hub creds. Adds buildx + `docker/metadata-action` (semver + `latest` tags) + gha build cache.
  • README Docker badge → the ghcr package page.

Build fix (the Forced include not found: /build/migrations failure)

A hatchling `force-include` of `migrations/` + `migrations_sqlite/` was added to `pyproject.toml` (to ship migrations inside the PyPI wheel), but `Dockerfile.server`'s builder stage only `COPY`s `src/` — so `pip install` couldn't find the migration dirs. Now the builder `COPY`s both before installing. (That's why the image last built successfully in March.)

One-time (owner)

After the first tag/dispatch pushes the image, make the ghcr package public in the package settings (same step you did for agentlens). No DOCKERHUB_* secrets needed anymore.

🤖 Generated with Claude Code

Migrate off the personal pazgaz/lore Docker Hub repo to
ghcr.io/agentkitai/lore, using the built-in GITHUB_TOKEN (packages: write) +
buildx + gha cache — no Docker Hub credentials, matching agentlens.

Also fixes the build that has failed since ~March: a hatchling force-include of
migrations/ + migrations_sqlite/ was added to pyproject (to ship migrations in
the wheel), but Dockerfile.server only COPYd src/ into the builder, so
`pip install` failed with `Forced include not found: /build/migrations`. COPY
both migration dirs into the builder stage before install.

README Docker badge -> ghcr package page.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@amitpaz1
amitpaz1 merged commit 17d3a3b into main Jun 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant