Deploy with Gitea Actions instead of Jenkins
Tests every push and pull request (lint, typecheck, Vitest, production build); pushes to master build the standalone bundle in the runner and rsync it over SSH as the subscription user into the subdomain's Plesk folder, then restart Passenger via tmp/restart.txt. No mounted host paths; rsync --delete leaves tmp/ and .well-known/ alone. Optional smoke test once DEPLOY_SMOKE_URL is set. Setup (deploy key, pinned host key, Gitea secrets and variables, Plesk Node.js settings) and the switchover order are in docs/deployment.md. Checked locally with actionlint and against a throwaway SSH server, which also caught "~" in the rsync -e string resolving to the wrong home. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
5 files changed
+285
-54
No files matched your search
@@ -47,6 +47,18 @@ Collected during the rewrite (September 2026); the progress log in
|
||||
- **Vitest 5 needs `@types/node` ≥ 22**; the config is `vitest.config.mts` because `package.json`
|
||||
has no `"type": "module"`.
|
||||
|
||||
## Deploy (Gitea Actions)
|
||||
|
||||
- **`~` in an rsync `-e` string is not your `$HOME`.** rsync passes it to ssh without a shell,
|
||||
and ssh expands `~` from the passwd entry. In a job container those can differ, so a key
|
||||
written to `$HOME/.ssh` isn't found and `known_hosts` is read from somewhere else. The workflow
|
||||
uses absolute paths (`SSH_DIR`) and `UserKnownHostsFile`. Found in a local dry run.
|
||||
- **The deploy target is Plesk's own subdomain folder** (`calendar.nachklang.art/`), so rsync
|
||||
`--delete` must exclude what Plesk or Passenger keep there (`tmp/`, `.well-known/`). The first
|
||||
deploy replaces the Angular build - back it up first, and switch Plesk to the Node app right
|
||||
after the run, because the folder no longer works as a static site.
|
||||
- **Disable the Jenkins job before merging to master**, or it runs `ng build` on the next push.
|
||||
|
||||
## shadcn / Base UI
|
||||
|
||||
- **`npx shadcn add` imports `cn` from the npm package `cn`** and adds it (plus `next-themes` for the
|
||||
|
||||
Reference in new issue
Block a user