Custom provider¶
Connecting custom git repository¶
- Navigate to
My repos > Connectand selectCustom gitprovider - Enter title and URL to your git repository. Click
Proceed - Copy the public key generated by Wodby to
~/.ssh/authorized_keyson a server with your git.
SSH host verification
Wodby 1 repository inspection and deployment do not pin the SSH host key for a custom Git server. A changed key therefore is not confirmed with you before Wodby reconnects. Use an HTTPS repository URL when your provider supports it, protect the repository credential, and restrict the generated SSH key to read-only access when SSH is required.
Add git hook for auto-deployment¶
- Navigate to your git repo page in Wodby Dashboard and copy the auto-deployment
Webhook URL - Connect to the server with your origin git repository
- Go to
.git/hooksdirectory and create a new filepost-receive.shwith the following content (replace<WEBHOOK URL>in this file with the URL you copied before)#!/bin/sh while read oldrev newrev ref do curl -H "Content-type: application/json" -X POST -d '{"ref": "'"$ref"'"}' <WEBHOOK URL> done - Now make this file executable
chmod +x post-receive.sh
Connecting custom server¶
If there is no native integration for your hosting provider, connect a fresh server using the Custom server option:
-
Review the Infrastructure 7 requirements and supported operating systems
-
Go to
My servers > Add. SelectCustom serverand click proceed -
You will see the page with requirements and instructions. Make sure all requirements are met
-
Connect to the server by SSH and execute the generated Infrastructure installer command as root. The command installs the pinned runtime components and connects the server to Wodby 1
-
Now you can deploy apps to this server