Repository navigation
feat: add k8s/Argo GitOps deployment pipeline with CloudNativePG #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
d42d0c3
eed61ab
83d79f0
fbb2380
98c2a83
17e54db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,10 +144,13 @@ return errorJson("Something went wrong"); | |
| | `$lib/...` | `src/lib/...` | | ||
| | `$app/paths` | SvelteKit paths utilities (`resolve`) | | ||
| | `$app/state` | SvelteKit reactive state (`page`) | | ||
| | `$env/static/public` | Public env vars (`PUBLIC_*`) | | ||
| | `$env/static/private` | Private env vars (server-only) | | ||
| | `$env/dynamic/public` | Public env vars (`PUBLIC_*`), read from `env.PUBLIC_X` | | ||
| | `$env/dynamic/private` | Private env vars (server-only), read from `env.X` | | ||
|
|
||
| Env file location: `.env` at the **monorepo root** (configured via `env.dir: "../../../"` in `svelte.config.js`). | ||
| Env file location: `.env` at the **monorepo root** (configured via `env.dir: "../../../"` in | ||
| `svelte.config.js` for dev; in production, `hooks.server.ts`/`instrumentation.server.ts` | ||
| explicitly `import "dotenv/config"` as their first import so the built server also loads it | ||
| at container start — nothing is baked in at build time). | ||
|
Comment on lines
+150
to
+153
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Correct the runtime-loading description.
🤖 Prompt for AI Agents |
||
|
|
||
| ## Navigation — Always Use `resolve()` | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| **/node_modules | ||
| **/.cache | ||
| **/.turbo | ||
| # Prisma/zod-prisma-types generated output (regenerated by `bun run build`). Excluding | ||
| # these avoids a bug where the zod-prisma-types generator fails trying to recursively | ||
| # clean a *pre-existing* output directory ("Error while deleting old data in path ...: | ||
| # The property 'options.recursive' is no longer supported") -- it has no trouble creating | ||
| # these fresh when they don't already exist in the build context. | ||
| src/infrastructure/database/src/zod | ||
| src/infrastructure/database/src/prisma-client | ||
| .git | ||
| **/.svelte-kit | ||
| **/build | ||
| **/dist | ||
| **/test-results | ||
| **/storybook-static | ||
| **/*storybook.log | ||
| **/tsconfig.tsbuildinfo | ||
| .devcontainer | ||
| .vscode | ||
| .claude |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Used only by .github/workflows/ci.yml's e2e-prod job. Publishes the ports that the | ||
| # hostNetwork relay pods (see "Expose the database via a hostNetwork relay pod" and | ||
| # "Expose the app via a hostNetwork relay pod") bind directly on the node, via kind's own | ||
| # documented mechanism for reaching a node port from outside the cluster -- the same | ||
| # mechanism kind itself relies on to expose the API server (a plain `docker -p` publish), | ||
| # which is proven reliable on GitHub-hosted runners. | ||
| # | ||
| # 30432: the CI-only Postgres relay, used by `prisma migrate deploy` and by the production | ||
| # image build (`prisma generate --sql` needs a live, already-migrated database). | ||
| # 3000: the CI-only app relay, used to run the production Playwright suite | ||
| # (playwright.prod.config.ts expects http://localhost:3000) against the app once deployed. | ||
| kind: Cluster | ||
| apiVersion: kind.x-k8s.io/v1alpha4 | ||
| nodes: | ||
| - role: control-plane | ||
| extraPortMappings: | ||
| - containerPort: 30432 | ||
| hostPort: 30432 | ||
| protocol: TCP | ||
| - containerPort: 3000 | ||
| hostPort: 3000 | ||
| protocol: TCP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Correct the
e2e-proddeployment description.The job does not run the image directly with
docker runand no Kubernetes. It appliesk8s/dbandk8s/appto kind before it runs Playwright. Update this text to describe the manifest deployment and relay pods.🧰 Tools
🪛 LanguageTool
[uncategorized] ~161-~161: The official name of this software platform is spelled with a capital “H”.
Context: ...ecrets, and one-time cluster bootstrap.
.github/workflows/ci.yml'se2e-prodjob buil...(GITHUB)
🤖 Prompt for AI Agents