Git Autodeploy to VPS via Webhook: Receiver + Deploy Scripts + Guide
- Price in currencies:
- 11.82 $ · 838 RUB · 10.77 €
- Category:
- Others
- Item:
- git-autodeploy-v1.0.zip (51.67 KB)
- Uploaded:
- 18.11.2026 20:01:46
- Sales:
- 0
- Refunds:
- 0
- Seller:
- Новинка Супер хит! · about the seller and their products
DESCRIPTION
Git Autodeploy to VPS via Webhook: Receiver + Deploy Scripts + Guide
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: https://plati.market/itm/vps-starter-kit-setup-and-protection-of-ubuntu-debian-server-scripts-pdf-guide/6397857
• Docker Deploy Kit — n8n and WordPress on a VPS: https://plati.market/itm/docker-deploy-kit-n8n-and-wordpress-on-vps-with-https-compose-stacks-pdf-guide/6399191
• n8n: Telegram bot for requests in Google Sheets: https://plati.market/itm/n8n-telegram-bot-for-requests-client-replies-in-google-sheets-template-guide/6399486
• n8n: AI support bot in Telegram: https://plati.market/itm/n8n-ai-support-bot-in-telegram-answers-from-your-knowledge-base-template-guide/6406585
• Website on a VPS from domain to HTTPS: https://plati.market/itm/site-on-vps-from-domain-to-https-step-by-step-guide-dns-nginx-certbot-configs/6406547
• Python website parser to Excel and CSV: https://plati.market/itm/python-parser-websites-to-excel-and-csv-products-and-prices-template-guide/6409589
• AI content factory: prompts and pipeline: https://plati.market/itm/ai-content-factory-prompts-for-product-cards-and-videos-pipeline-guide/6409611
• VPS monitoring: Uptime Kuma + alerts: https://plati.market/itm/vps-monitoring-uptime-kuma-telegram-alerts-docker-compose-stack-guide/6410250
• Telegram bot on a VPS with systemd: https://plati.market/itm/telegram-bot-on-vps-with-systemd-autostart-restart-logs-templates-guide/6410458
• Server backups with restic: https://plati.market/itm/server-backups-with-restic-scheduled-cloud-storage-telegram-alerts/6410486
• Moving WordPress to a VPS with zero downtime: https://plati.market/itm/move-wordpress-to-a-vps-with-zero-downtime-step-by-step-guide-checklist/6410510
• Your own WireGuard VPN on a VPS: https://plati.market/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: https://plati.market/itm/n8n-auto-posting-to-telegram-channel-from-rss-and-google-sheets-template-guide/6410621
• n8n: deadline reminders from Sheets: https://plati.market/itm/n8n-deadline-reminders-from-google-sheets-to-telegram-template-guide/6410660
• Your own Git on a VPS: Gitea in Docker: https://plati.market/itm/your-own-git-on-a-vps-gitea-in-docker-backups-compose-stack-guide/6422908
• Mail on your own domain: SPF, DKIM, DMARC: https://plati.market/itm/mail-on-your-own-domain-spf-dkim-dmarc-letters-not-in-spam-guide-script/6423006
• Your own cloud on a VPS: Nextcloud: https://plati.market/itm/your-own-cloud-on-a-vps-nextcloud-in-docker-with-https-stack-guide/6423229
• Lead bot with a request form on aiogram: https://plati.market/itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255
• WordPress security: audit and hardening: https://plati.market/itm/wordpress-security-audit-and-hardening-check-script-guide/6423291
REVIEWS
Reviews: (0)
No customer reviews yet.

