Git Autodeploy to VPS via Webhook: Receiver + Deploy Scripts + Guide
Sold <10
0 000 X
There are no such quantities in stock
By clicking the button, you agree to
terms for buyers
Secure deal
Instant delivery
Product description
Push to main — and the site on the server updates itself. No manual SSH login and no subscription CI services: a small webhook receiver in pure Python (standard library only) verifies the GitHub or Gitea signature, checks the branch, and runs the deploy — git pull --ff-only plus your build command. The result of every deploy is written to a log and, if you want, sent to Telegram.
Foreign requests get 403 (the HMAC-SHA256 signature is mandatory; without a secret the receiver will not start), a push to another branch is politely ignored, and two pushes in a row do not fight over the working tree — the deploy is protected by a lock.
WHAT´S INSIDE THE ARCHIVE
• webhook.py — GitHub and Gitea webhook receiver, signature verification
• deploy.sh — update: fetch, pull --ff-only, build command, flock
• .env.example — all settings in one file: secret, branch, folder, port
• webhook.service — systemd unit: autostart and restart on failure
• README.md — complete guide: installation, webhook, proxy, security, troubleshooting
• Git-autodeploy-guide.pdf — the same guide, laid out for printing (3 pages)
GUIDE STEPS
1. Files to the server, .env: secret, branch, site folder, build command.
2. webhook systemd service — the receiver runs permanently.
3. Webhook in the repository: URL /deploy, the same secret, push event.
4. git push to main — the site is updated, the result is in the log and in Telegram.
WHAT YOU NEED
A VPS with Python 3 and git, a clone of your repository on the server. 20 minutes.
IMPORTANT
These are scripts and a guide for setting it up yourself — not a turnkey setup. If you need autodeploy set up for your project turnkey, that is a separate service.
IN THE SAME SERIES
• VPS Starter Kit — Ubuntu/Debian server setup and protection: /itm/vps-starter-kit-setup-and-protection-of-ubuntu-debian-server-scripts-pdf-guide/6397857
• Docker Deploy Kit — n8n and WordPress on a VPS: /itm/docker-deploy-kit-n8n-and-wordpress-on-vps-with-https-compose-stacks-pdf-guide/6399191
• n8n: Telegram bot for requests in Google Sheets: /itm/n8n-telegram-bot-for-requests-client-replies-in-google-sheets-template-guide/6399486
• n8n: AI support bot in Telegram: /itm/n8n-ai-support-bot-in-telegram-answers-from-your-knowledge-base-template-guide/6406585
• Website on a VPS from domain to HTTPS: /itm/site-on-vps-from-domain-to-https-step-by-step-guide-dns-nginx-certbot-configs/6406547
• Python website parser to Excel and CSV: /itm/python-parser-websites-to-excel-and-csv-products-and-prices-template-guide/6409589
• AI content factory: prompts and pipeline: /itm/ai-content-factory-prompts-for-product-cards-and-videos-pipeline-guide/6409611
• VPS monitoring: Uptime Kuma + alerts: /itm/vps-monitoring-uptime-kuma-telegram-alerts-docker-compose-stack-guide/6410250
• Telegram bot on a VPS with systemd: /itm/telegram-bot-on-vps-with-systemd-autostart-restart-logs-templates-guide/6410458
• Server backups with restic: /itm/server-backups-with-restic-scheduled-cloud-storage-telegram-alerts/6410486
• Moving WordPress to a VPS with zero downtime: /itm/move-wordpress-to-a-vps-with-zero-downtime-step-by-step-guide-checklist/6410510
• Your own WireGuard VPN on a VPS: /itm/your-own-wireguard-vpn-on-a-vps-in-15-minutes-install-client-scripts-guide/6410603
• n8n: auto-posting to Telegram from RSS and Sheets: /itm/n8n-auto-posting-to-telegram-channel-from-rss-and-google-sheets-template-guide/6410621
• n8n: deadline reminders from Sheets: /itm/n8n-deadline-reminders-from-google-sheets-to-telegram-template-guide/6410660
• Your own Git on a VPS: Gitea in Docker: /itm/your-own-git-on-a-vps-gitea-in-docker-backups-compose-stack-guide/6422908
• Mail on your own domain: SPF, DKIM, DMARC: /itm/mail-on-your-own-domain-spf-dkim-dmarc-letters-not-in-spam-guide-script/6423006
• Your own cloud on a VPS: Nextcloud: /itm/your-own-cloud-on-a-vps-nextcloud-in-docker-with-https-stack-guide/6423229
• Lead bot with a request form on aiogram: /itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255
• WordPress security: audit and hardening: /itm/wordpress-security-audit-and-hardening-check-script-guide/6423291
Foreign requests get 403 (the HMAC-SHA256 signature is mandatory; without a secret the receiver will not start), a push to another branch is politely ignored, and two pushes in a row do not fight over the working tree — the deploy is protected by a lock.
WHAT´S INSIDE THE ARCHIVE
• webhook.py — GitHub and Gitea webhook receiver, signature verification
• deploy.sh — update: fetch, pull --ff-only, build command, flock
• .env.example — all settings in one file: secret, branch, folder, port
• webhook.service — systemd unit: autostart and restart on failure
• README.md — complete guide: installation, webhook, proxy, security, troubleshooting
• Git-autodeploy-guide.pdf — the same guide, laid out for printing (3 pages)
GUIDE STEPS
1. Files to the server, .env: secret, branch, site folder, build command.
2. webhook systemd service — the receiver runs permanently.
3. Webhook in the repository: URL /deploy, the same secret, push event.
4. git push to main — the site is updated, the result is in the log and in Telegram.
WHAT YOU NEED
A VPS with Python 3 and git, a clone of your repository on the server. 20 minutes.
IMPORTANT
These are scripts and a guide for setting it up yourself — not a turnkey setup. If you need autodeploy set up for your project turnkey, that is a separate service.
IN THE SAME SERIES
• VPS Starter Kit — Ubuntu/Debian server setup and protection: /itm/vps-starter-kit-setup-and-protection-of-ubuntu-debian-server-scripts-pdf-guide/6397857
• Docker Deploy Kit — n8n and WordPress on a VPS: /itm/docker-deploy-kit-n8n-and-wordpress-on-vps-with-https-compose-stacks-pdf-guide/6399191
• n8n: Telegram bot for requests in Google Sheets: /itm/n8n-telegram-bot-for-requests-client-replies-in-google-sheets-template-guide/6399486
• n8n: AI support bot in Telegram: /itm/n8n-ai-support-bot-in-telegram-answers-from-your-knowledge-base-template-guide/6406585
• Website on a VPS from domain to HTTPS: /itm/site-on-vps-from-domain-to-https-step-by-step-guide-dns-nginx-certbot-configs/6406547
• Python website parser to Excel and CSV: /itm/python-parser-websites-to-excel-and-csv-products-and-prices-template-guide/6409589
• AI content factory: prompts and pipeline: /itm/ai-content-factory-prompts-for-product-cards-and-videos-pipeline-guide/6409611
• VPS monitoring: Uptime Kuma + alerts: /itm/vps-monitoring-uptime-kuma-telegram-alerts-docker-compose-stack-guide/6410250
• Telegram bot on a VPS with systemd: /itm/telegram-bot-on-vps-with-systemd-autostart-restart-logs-templates-guide/6410458
• Server backups with restic: /itm/server-backups-with-restic-scheduled-cloud-storage-telegram-alerts/6410486
• Moving WordPress to a VPS with zero downtime: /itm/move-wordpress-to-a-vps-with-zero-downtime-step-by-step-guide-checklist/6410510
• Your own WireGuard VPN on a VPS: /itm/your-own-wireguard-vpn-on-a-vps-in-15-minutes-install-client-scripts-guide/6410603
• n8n: auto-posting to Telegram from RSS and Sheets: /itm/n8n-auto-posting-to-telegram-channel-from-rss-and-google-sheets-template-guide/6410621
• n8n: deadline reminders from Sheets: /itm/n8n-deadline-reminders-from-google-sheets-to-telegram-template-guide/6410660
• Your own Git on a VPS: Gitea in Docker: /itm/your-own-git-on-a-vps-gitea-in-docker-backups-compose-stack-guide/6422908
• Mail on your own domain: SPF, DKIM, DMARC: /itm/mail-on-your-own-domain-spf-dkim-dmarc-letters-not-in-spam-guide-script/6423006
• Your own cloud on a VPS: Nextcloud: /itm/your-own-cloud-on-a-vps-nextcloud-in-docker-with-https-stack-guide/6423229
• Lead bot with a request form on aiogram: /itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255
• WordPress security: audit and hardening: /itm/wordpress-security-audit-and-hardening-check-script-guide/6423291
Main features
- Content type File
- Content description 51,67 kB
- Updated on the site 18.11.2026
Images
Reviews
No reviews yet
0 000 X
There are no such quantities in stock
By clicking the button, you agree to
terms for buyers
Secure deal
Instant delivery
You viewed
All images, logos, and names of games, programs, and other products used are taken from public sources and are for informational purposes only. All trademarks, logos, names, and other intellectual property belong to their respective owners. Use of such images on the website does not imply any affiliation or connection with the copyright holders.