Skip to content

Publish image to GHCR, mirroring finance-agent's packaging - #8

Merged
agb1986 merged 1 commit into
mainfrom
add-ghcr-publish
Aug 8, 2026
Merged

agb1986 merged 1 commit into
mainfrom
add-ghcr-publish

Conversation

@agb1986

@agb1986 agb1986 commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • .github/workflows/docker.yml — builds and pushes ghcr.io/agb1986/ai-data-store (:latest and :<sha>) on every push to main, ported directly from finance-agent's workflow of the same name (same login/buildx/build-push-action steps, GHA layer caching).
  • docker-compose.yml — api/web services now carry both build: . (unchanged, so a fresh clone still works with no registry access) and image: ghcr.io/agb1986/ai-data-store:latest. This mirrors finance-agent's own compose file, which keeps the same dual build:/image: pair for the same reason: docker compose up --build still works locally, while docker compose pull now fetches the prebuilt image instead of rebuilding on the CasaOS host.
  • README — documents docker compose pull && docker compose up -d as the update path, alongside the existing git pull && docker compose up -d --build, worded the same way as finance-agent's docs/deployment.md.

Today setup.sh and the README's update instructions only ever rebuild locally on the CasaOS box. This closes that gap the same way finance-agent already did.

Test plan

  • docker compose config -q — compose file parses and resolves
  • Workflow YAML parses (yaml.safe_load)
  • ruff check . / pytest — unaffected, still 57 passed (no Python changed)
  • After merge: confirm the docker.yml workflow runs and publishes to ghcr.io/agb1986/ai-data-store
  • On the CasaOS box: docker compose pull && docker compose up -d picks up the published image

🤖 Generated with Claude Code

setup.sh/README updates both run docker compose up -d --build, which
rebuilds from source on the CasaOS box every time. finance-agent
already solved this the same way this project needed to: build once in
CI and let the host pull.

- .github/workflows/docker.yml builds and pushes ghcr.io/agb1986/ai-data-store
  on every push to main, ported from finance-agent's workflow of the
  same name
- docker-compose.yml's api/web services keep build: . as a local-dev
  fallback but now also carry the GHCR image: tag, so docker compose
  pull works once the workflow has published at least one image
- README documents docker compose pull as the update path on CasaOS,
  alongside the existing build path

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@agb1986
agb1986 merged commit adb08a6 into main Aug 8, 2026
1 check 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