chore: import private baseline from gitea state
This commit is contained in:
41
deploy/server-maibot/README_DEPLOY_STEPS.txt
Normal file
41
deploy/server-maibot/README_DEPLOY_STEPS.txt
Normal file
@@ -0,0 +1,41 @@
|
||||
Server runtime directory: /root/maibot-offline
|
||||
Release archive directory: /srv/maibot/releases
|
||||
|
||||
Repo-managed deployment files:
|
||||
- deploy/server-maibot/Dockerfile.offline
|
||||
- deploy/server-maibot/Dockerfile.release
|
||||
- deploy/server-maibot/docker-entrypoint.offline.sh
|
||||
- deploy/server-maibot/docker-compose.server.yml
|
||||
- deploy/server-maibot/activate-release.sh
|
||||
- deploy/server-maibot/bot.lecspace.com.nginx.conf
|
||||
|
||||
Persistent files that stay on the server and do not go into Git:
|
||||
- /root/maibot-offline/docker-config/mmc/*
|
||||
- /root/maibot-offline/docker-config/napcat/*
|
||||
- /root/maibot-offline/data/*
|
||||
- /root/maibot-offline/depends-data/*
|
||||
- /root/maibot-offline/bot.lecspace.com.key
|
||||
- /root/maibot-offline/bot.lecspace.com_bundle.pem
|
||||
|
||||
Gitea workflow:
|
||||
- .gitea/workflows/release-offline.yml
|
||||
|
||||
Current pipeline mode:
|
||||
- single-host release on the repo-level `build-host` runner
|
||||
- clones from local Gitea HTTP on `127.0.0.1:3000`
|
||||
- stages source into `/srv/maibot/releases/<commit>`
|
||||
- builds `maibot-offline:<commit>` from the staged release using local base image `maibot-offline:latest`
|
||||
- tags the same image back to `maibot-offline:latest`
|
||||
- deploys from `/root/maibot-offline` with `docker compose up -d`
|
||||
|
||||
Optional environment overrides for the workflow runtime:
|
||||
- `MAIBOT_RELEASE_ROOT`
|
||||
- `MAIBOT_RUNTIME_ROOT`
|
||||
- `MAIBOT_BASE_IMAGE`
|
||||
|
||||
No repository secrets are required for the default same-host pipeline.
|
||||
|
||||
Bootstrap note:
|
||||
- `deploy/server-maibot/Dockerfile.offline` is only for the first bootstrap or for refreshing the runtime base image.
|
||||
- The normal Gitea release pipeline uses `deploy/server-maibot/Dockerfile.release`, so it does not need Docker Hub or GitHub during each deploy.
|
||||
- If `pyproject.toml` or `uv.lock` changes, refresh the local base image once before relying on the release pipeline again.
|
||||
Reference in New Issue
Block a user