Hi all,
If you host your custom Frappe apps on GitLab, you might have noticed that Frappe Cloud only supports GitHub integrations out of the box for pulling app updates and managing deployments.
Since Frappe Cloud/Press relies heavily on GitHub OAuth and webhooks, there isn’t native GitLab support yet. If you don’t want to migrate all your repositories over to GitHub just to deploy them, here is a quick workaround using GitLab’s built-in Repository Mirroring.
Workaround
We keep our primary code, MRs, and development workflow in GitLab, but continuously mirror the main/production branch to a private GitHub repository. Frappe Cloud then connects to the GitHub mirror to handle deployments smoothly.
How to setup
- Go to your gitlab repo and navigate to
Settings > Repository > Mirroring repositories - Setup your github credentials
- Configure what to mirror
- Done
Now, whenever you merge code into your primary GitLab branch, GitLab will automatically push the changes to GitHub within a few minutes, triggering your usual Frappe Cloud deploy/update flow.
Hope this helps anyone who runs their infra on GitLab!
Discussion
Are there any plans or existing proposals to add native GitLab support to Frappe Cloud / Press?
I’d be keen to contribute to frappe/press to help get this in. If anyone from the team or community is already looking into this or has thoughts on the implementation, let me know!
