Skip to content

ci: deploy via server webhook instead of github actions - #74

Merged
xbuddhi merged 1 commit into
mainfrom
ci/webhook-deploy-main
Oct 22, 2026
Merged

xbuddhi merged 1 commit into
mainfrom
ci/webhook-deploy-main

Conversation

@xbuddhi

@xbuddhi xbuddhi commented Oct 22, 2026

Copy link
Copy Markdown

Moves prod deploys off GitHub Actions and onto a server-side webhook, the same setup Ceyintel uses.

How it works now

  • A GitHub push webhook calls the aaPanel hook BitcoinDeepa Deploy on the server.
  • The hook script routes main to prod and dev to dev. It runs git fetch + reset --hard origin/<branch>, builds BitcoinDeepaBot to a temp file and swaps it in only if the build succeeds, then restarts bitcoin_deepa_bot_<env> and checks that the service is active.
  • Each environment has a flock lock, and progress is posted to Telegram. Logs go to /var/log/bitcoin-deepa-deploy.log.

This PR

  • Removes build-deploy.yml and build-deploy-dev.yml so Actions and the webhook can't both deploy the same push.
  • Leaves release.yml and release-dev.yml unchanged.

The SSH secrets (SERVER_HOST, SERVER_KEY, ...) can be deleted after this lands.

Pushes to main and dev now hit an aaPanel webhook on the server that
pulls, builds and restarts bitcoin_deepa_bot_prod / bitcoin_deepa_bot_dev
(same setup as Ceyintel). Drop the SSH-based deploy workflows so the two
mechanisms never race each other. Release workflows are unchanged.
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 634d4d1b-ac70-4b3a-89ee-40b8f189c674
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@xbuddhi
xbuddhi merged commit 7c465fe into main Oct 22, 2026
1 of 3 checks passed
@xbuddhi
xbuddhi deleted the ci/webhook-deploy-main branch October 22, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant