ci: add demo deployment pipeline with tag-triggered CI/CD#35
Merged
Conversation
Add GitHub Actions workflow that builds Docker images for server, admin, and storefront on tag push, pushes to GHCR, and deploys to demo.kitchenasty.com via SSH. Caddy serves as reverse proxy with auto-HTTPS, routing /admin/* to the admin container and everything else to storefront. Admin is built with configurable VITE_BASE_PATH for subpath support, and BrowserRouter uses import.meta.env.BASE_URL as basename so React Router respects the base path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v*tags that builds Docker images (server, admin, storefront), pushes to GHCR, and deploys todemo.kitchenasty.comvia SSH/admin/*to admin container, everything else to storefrontVITE_BASE_PATHin admin Dockerfile and vite config so admin can be served under/admin/basenameto BrowserRouter so React Router respects the Vite base pathArchitecture
Required GitHub Secrets
SSH_PRIVATE_KEYSSH_USERdeploy)DEMO_JWT_SECRETTest plan
/(defaultVITE_BASE_PATH)v*tag to trigger the workflowhttps://demo.kitchenasty.com— storefront loadshttps://demo.kitchenasty.com/admin— admin login loads🤖 Generated with Claude Code