ci: deploy website from Forgejo Actions #54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/forgejo-actions-auto-deploy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a Forgejo Actions workflow that runs CI on pull requests and deploys the website automatically after pushes to main.
Why
The website should deploy from our own Git CI/CD path when changes are merged, instead of relying on manual host commands.
Changes
.forgejo/workflows/dimensionlab-website.ymlwith PR CI and main-only deploy jobs.packages/uisubmodule through HTTPS inside CI.scripts/deploy-dimensionlab-website.shwith main-branch/event guards, dry-run mode, image build/tagging, Quadlet-compatible restart, smoke checks, and rollback verification.bun:sqlite.Testing
bun --cwd apps/web test src/lib/workspace-boundary.test.tsbash -n scripts/deploy-dimensionlab-website.shDEPLOY_REF=refs/heads/main DEPLOY_EVENT_NAME=push DEPLOY_SHA=$(git rev-parse HEAD) DEPLOY_RESTART_STRATEGY=quadlet-container DEPLOY_CONTAINER_CLI=podman scripts/deploy-dimensionlab-website.sh --dry-runDEPLOY_REF=refs/heads/codex/test DEPLOY_EVENT_NAME=push DEPLOY_CONTAINER_CLI=podman scripts/deploy-dimensionlab-website.sh --dry-runfails as expectedDEPLOY_REF=refs/heads/main DEPLOY_EVENT_NAME=pull_request DEPLOY_CONTAINER_CLI=podman scripts/deploy-dimensionlab-website.sh --dry-runfails as expected--security-opt label=disableverified againstdimensionlab-website.servicebun install --frozen-lockfilebun run checkbun run testbun run buildcisuccessful,deployskipped on pull_requestNotes
The deploy job only runs when Forgejo reports
github.event_name == 'push'andgithub.ref == 'refs/heads/main'. PRs get CI only; they do not deploy.