Articles on: Deployments

Add Deployment

Deployments are requests to deploy a certain ref (branch, SHA, tag). When new deployments are generated, Git providers send out a deployment event that external services can listen for and act on. InstaWP allows you to connect your existing Git repos (from any Git provider such as Github, Gitlab, Bitbucket, etc) to your account.

In this documentation, we will explore the steps to add a new deployment.

Let’s get started 🚀

Step 1: Sign In to your InstaWP account to access the dashboard.



Step 2: Click on the Profile icon from the top-right corner and select the Deployment option from the dropdown menu.



This will take you to the Deployment page.



Step 3: Click on the Add New + button from the right top corner of the interface.



A new modal window will appear, requesting you to enter the values in the following fields:

FieldsDescription
Repo typeThe type of repositories selected from: Public for public repos & Private for private repos
Repo URLAdd the URL to your repo (for example "https://github.com/yourcompany/yourplugin").
BranchMention the branch which this deployment points (more on this later).
Destination FolderThe folder to which your repository content will be downloaded.
Post Deployment CommandsShell commands will be run after the git repository is cloned (for example, composer install, npm install, npm run dev, wp-config set WP_DEBUG true --raw).

Note: The Post deployment commands feature is available in Personal Yearly plan and above. View Pricing here. If you are not logged in, use this link to view pricing.



In case you are connecting to a Private repository, you will be asked to generate an SSH Key pair or select an existing key pair from your team.



Click on the + Generate New button to generate a public key, that you can copy and add to your Git repository.



Then, click on the Add button to add a new deployment to the InstaWP account.



At last, you will see a success message on your screen.


💡 Did you know - You can select the repository to deploy when the site is created from the template. Learn about connect deployment to an existing site.



https://github.com/GatoGraphQL/GatoGraphQL/blob/master/.github/workflows/integration_tests.yml

Updated on: 09/04/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!