Commit Graph

22 Commits

Author SHA1 Message Date
Sven
9cbf574b15 ci: use SSH_PORT secret instead of hardcoded port 222
All checks were successful
Deploy Indiekit Server / deploy (push) Successful in 1m16s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 13:20:07 +02:00
Sven
59ea628595 ci: replace GitHub Actions deploy with Gitea FreeBSD runner
Some checks failed
Deploy Indiekit Server / deploy (push) Failing after 3s
- runs-on: freebsd (act_runner host label) instead of ubuntu-latest
- Drop appleboy/ssh-action; use plain ssh in a run step (same pattern as
  indiekit-blog deploy.yml)
- Drop actions/setup-node; no build step on runner side
- On deploy: set git remote to internal Gitea URL, fetch, reset --hard
- npm ci --legacy-peer-deps (postinstall applies all patches automatically)
- .env and SECRET preflight checks; preflight-production-security and
  preflight-mongo-connection before restart
- Async restart via nohup + poll loop (avoids SSH hanging on open stdout)
- add workflow_dispatch trigger

Required repo secrets: SSH_PRIVATE_KEY, SSH_USER, SSH_HOST
(copy values from giersig.eu/indiekit-blog repo secrets)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 13:17:33 +02:00
Sven
9668485b57 revert(deploy): remove syndication webhook (moved to blog repo)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 07:39:39 +01:00
Sven
b16c60adec feat(deploy): trigger syndication webhook after successful deployment
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 07:33:39 +01:00
Sven
42ddf89f90 chore: cleanup 2026-03-19 10:47:02 +01:00
Sven
ee1313fb26 ci: upgrade to actions/checkout@v5 and setup-node@v5, node 18→22 2026-03-15 08:52:30 +01:00
Sven
d3fb055df4 chore: upgrade checkout and setup-node actions to v4
Addresses Node.js 20 deprecation warning in GitHub Actions runners.
actions/checkout and actions/setup-node v4 use Node.js 24-compatible
runtimes, ahead of the June 2026 forced migration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 23:17:18 +01:00
svemagie
ae936b2e1a fix(deploy): explicitly re-run all patches after npm ci
Adds an explicit patch loop in the deploy step to ensure all
scripts/patch-*.mjs run even if npm ci postinstall was skipped.
This guarantees changelog categorization and other patches are
always applied on the server regardless of npm install mode.
2026-03-10 17:33:41 +01:00
svemagie
771e2302b7 fix: updates 2026-03-10 15:44:25 +01:00
svemagie
f44211799c Fix CI install by enabling legacy peer deps 2026-03-09 13:52:25 +01:00
svemagie
8e759a5cb9 Add safe password setup recovery mode 2026-03-08 04:05:06 +01:00
svemagie
1558e8b40e Harden production auth startup and dev-mode access 2026-03-08 04:01:41 +01:00
svemagie
598affe878 chore(deploy): keep sharp build manual on server 2026-03-08 02:26:05 +01:00
svemagie
86bf7d1899 fix(deploy): use service status check after restart 2026-03-08 02:22:27 +01:00
svemagie
fd335b5c47 fix(deploy): build sharp from source on FreeBSD 2026-03-08 02:17:35 +01:00
svemagie
21d16695c2 fix(deploy): add mongodb runtime dep and harden env checks 2026-03-08 02:10:17 +01:00
svemagie
d00d7d2f1d fix(deploy): preflight before restart and robust startup polling 2026-03-08 02:06:41 +01:00
svemagie
a7f060a4cb Fix deploy restart hang and Mongo config 2026-03-07 18:57:43 +01:00
svemagie
c3ec43758e deploy corr with shell 2026-03-07 16:56:00 +01:00
svemagie
24bb9ae602 chore: update deploy.yml 2026-03-07 16:53:53 +01:00
svemagie
625cc777f8 fix: run deploy as indiekit user in jail 2026-03-07 16:49:29 +01:00
svemagie
9943bfbccf Bump version to v0.1 2026-03-07 15:59:54 +01:00