You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -607,6 +607,31 @@ docker stop pythonid-bot
607
607
docker restart pythonid-bot
608
608
```
609
609
610
+
## CI/CD Deployment
611
+
612
+
The project uses GitHub Actions for automated testing and deployment:
613
+
614
+
1.**Python Code Checks** (`python-checks.yml`) — Runs ruff lint and pytest across Python 3.11–3.14 on every push
615
+
2.**Deploy to Dev Server** (`deploy-dev.yml`) — Builds Docker image, pushes to Docker Hub, and deploys to the dev server
616
+
617
+
### GitHub Repository Variables
618
+
619
+
The deployment workflow writes configuration files to the server from GitHub repository variables (**Settings > Secrets and variables > Actions > Variables**):
620
+
621
+
| Variable | Description |
622
+
|----------|-------------|
623
+
|`DEV_ENV_FILE`| Contents of the `.env` file (bot token, database path, logging settings) |
624
+
|`DEV_GROUPS_JSON`| Contents of `groups.json` for multi-group configuration |
625
+
626
+
### GitHub Repository Secrets
627
+
628
+
| Secret | Description |
629
+
|--------|-------------|
630
+
|`DOCKERHUB_USERNAME`| Docker Hub username for image push |
631
+
|`DOCKERHUB_TOKEN`| Docker Hub access token |
632
+
|`DEV_SSH_PRIVATE_KEY`| SSH private key for server access |
633
+
|`DEV_SSH_KNOWN_HOSTS`| SSH known hosts entry for the server |
0 commit comments