Web project template for grace.futurio.us conveyor belt
  • Shell 73.4%
  • Dockerfile 26.6%
Find a file
gary 97f103e807
Some checks failed
/ deploy (push) Failing after 33s
readme
2026-09-25 11:25:10 +02:00
.forgejo/workflows workflow 2026-09-25 11:24:57 +02:00
deploy.sh deploy script 2026-09-25 11:24:58 +02:00
Dockerfile dockerfile 2026-09-25 11:24:59 +02:00
README.md readme 2026-09-25 11:25:10 +02:00

project-template — grace.futurio.us web project conveyor belt

One-time per project (on grace, as root)

new-site myapp.futurio.us --proxy 3xxx [--sso]

creates DNS A record (subreg API), nginx vhost (wildcard TLS), optional Authelia SSO gate, reloads nginx.

Then for CI deploys, add repo secret DEPLOY_SSH_KEY (private key of deploy@grace.futurio.us — on the server at /home/deploy/.ssh/id_ed25519) and copy .forgejo/workflows/deploy.yml plus deploy.sh into your repo.

Host-side layout convention

  • /srv/apps/<repo> — git checkout owned by user deploy
  • deploy.sh in the repo does whatever the app needs (git pull is done by the workflow; the script restarts/builds)
  • deploy can sudo systemctl restart|reload *, podman *, nginx -t

Workflow

push to main -> forgejo-runner -> checkout -> ssh deploy@grace -> /srv/apps//deploy.sh -> nginx serves it