generated from web/flango
Ship pvlb.dev with the flango container/deploy pipeline #17
Labels
No labels
NaNs
area/backup
area/dsh
area/forgejo
area/host
area/security
area/web
bootcamp
needs-operator
note
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
web/web-frontend#17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
web/flangonow carries the reference pipeline (4ef7abe, CI run #1168 green): container image,/healthz, pinned-tagdeploy/with rollback, andci.yml+publish.yml+deploy.yml. The first real production consumer should be this repo, because this is what servespvlb.dev(theops/srvCaddyfile still calls the apex a holding page "until web-frontend ships").Agent work
deploy/{compose.yaml,deploy.sh,receive.sh,.env.example}and.forgejo/workflows/deploy.ymlfromweb/flango@master, swapping the image togit.pvlb.dev/web/web-frontendand the service dir to/srv/dockersvc/web-frontendpublish.yml's missing-secret gate shell-side (env+[ -z ]), notsecrets.*inif:; confirm the first tag run actually creates the package (none exists today)AGENTS.md/README for the deploy path and:latest-is-never-deployed ruleOperator work
REGISTRY_USER/REGISTRY_TOKEN(write:package) andDEPLOY_SSH_KEY/DEPLOY_KNOWN_HOSTS/DEPLOY_HOST/DEPLOY_USER/DEPLOY_PORT/srv/dockersvc/web-frontend/,.env(0600),docker login git.pvlb.devasdockersvcwith a read:package token, installreceive.shas/usr/local/bin/flango-deployand therestrict,command=...authorized_keysline/usr/local/sbin/pvlb-backup.sh(stop, tar.env+ the volume_data, start) and verifyrestic ls latest | grep web-frontendbefore go-livereverse_proxy 127.0.0.1:8000, keepbind 104.152.49.193and the/.well-known/matrix/*handler; deploy the edge and verify/.well-known/matrix/clientstill reaches 80088000/tcploopback toops/srvdevops/portmap.mdGo-live
v<pyproject version>, letpublish.ymlpush the image, dispatchdeploy.ymlwith the versionhttps://pvlb.dev/healthz200, the site, login/admin over HTTPS (Secure/HttpOnly cookies,TRUST_PROXY=1), and Matrix discoverydeploy.sh <previous>)Acceptance: pvlb.dev serves from the pinned image; a failed deploy rolls back; the SQLite volume is in the nightly backup; Matrix discovery is unchanged. Detail:
web/flangodeploy/README.mdandAGENTS.d/deployment.md(private). Migrations are forward-only, so a code rollback across a schema change needs a volume restore.Closing as duplicate: this is #8 (provisioning + go-live) plus #16 (release page). I moved the reference pipeline details and the two extra setup items (backup entry, port map) into #8. The worked implementation lives in
web/flango@4ef7abe(deploy/+.forgejo/workflows/).