A Deployment Key is an SSH key that you generate in RunCloud and add to your git repository settings, such as GitHub, GitLab, Bitbucket, etc. By doing this, you can then authorize RunCloud to access and clone your repository to your server.
To use a Deployment Key in RunCloud, follow these steps:
- Log in to your RunCloud dashboard and select the server that has the web application that you want to deploy.
- Click on “Deployment Key” from the main navigation menu and then click on the “View” button corresponding to the system user account that you want to use. If a key does not exist, RunCloud will prompt you to generate a deployment key.
- Copy the generated SSH key and log in to your git repository provider’s dashboard, such as GitHub, and go to the repository settings that you want to deploy.
- Go to the “Deploy Keys” section and click on “Add Deploy Key“.
- Enter a title for your Deploy Key, such as “RunCloud Deploy Key”, and paste the SSH key that you copied from RunCloud.
- Confirm and save the key in your git provider’s dashboard.
Now, you have successfully connected your web application to your git repository using a Deployment Key, and can now start using it.
You can also get the WebHook URL from RunCloud, which will allow you to trigger a deployment whenever you push new changes to your repository branch. You can add this WebHook URL to your repository settings in your git provider’s dashboard.