Connect GitHub to Odoo via OEC.sh
Auto-deploy Odoo on every push and post status back to GitHub.
Available on the Free plan.
What this integration does
OEC.sh runs a two-way GitHub integration. Incoming webhooks trigger automatic deploys on pushes, branch merges, and tag releases. Outgoing webhooks (or direct API calls) post commit statuses, deploy URLs, and PR preview links straight back to the pull request, so reviewers see green checks without leaving GitHub.
The integration is configured from your OEC.sh project settings. If you have not created an account yet, you can start free and connect GitHub in under five minutes. Compare OEC.sh against the hosted Odoo.sh option if you are still deciding where to run Odoo.
Common use cases
Auto-deploy production from main and staging from a dev branch with zero manual steps
Spin up a PR preview environment per pull request via OEC.sh Automation Rules, then tear it down on merge
Post commit statuses (pending, success, failure) and deploy URLs back to GitHub for fast code review
Run a GitHub Action that calls the OEC.sh Public API to clone production into a fresh staging env on demand
How to set it up
Five steps, end to end. Most teams finish in under five minutes.
- 1In OEC.sh, open Settings, then Integrations, then click Connect GitHub and complete the OAuth flow
- 2Pick the organization and repository you want to connect
- 3Choose the branch that maps to each environment (for example main to production, dev to staging)
- 4Optionally add an Automation Rule like 'on pull_request.opened, clone production to a preview env'
- 5Push a commit and watch the deploy run automatically with status posted back to GitHub
Example payload
Here is the exact format OEC.sh sends (or that you would send to OEC.sh, in the case of GitHub Actions, GitLab CI, Bitbucket Pipelines, and n8n).
name: Deploy to OEC.shon: push: branches: [main]jobs: deploy: runs-on: ubuntu-latest steps: - name: Trigger OEC.sh deploy run: | curl -X POST https://api.oec.sh/v1/projects/${{ secrets.OECSH_PROJECT_ID }}/deploy \ -H "Authorization: Bearer ${{ secrets.OECSH_API_TOKEN }}" \ -H "Content-Type: application/json" \ -d '{ "environment": "production", "commit": "${{ github.sha }}", "branch": "${{ github.ref_name }}" }'Plan availability
Available on every plan including Free ($0/mo). No payment details needed to wire it up.
See full pricingFrequently Asked Questions
Other integrations
Wire GitHub into your Odoo deploys today
Free tier included. No credit card required. Connect in under five minutes.