Fetch Changes with git pull

Tip
If you are new to Buddy, check out our workflow guides that will tell you how to build, test and deploy your type of application.

Buddy turns deployments into a breeze, allowing you to automatically pull the latest revision on your server on every push to branch. You can also deploy manually on click, or recurrently on time intervals.

Image loading...Example pipeline with  SSH action

Configure pipeline in Buddy

  1. Create a new project in Buddy and select your Git provider:

Image loading...Creating a new project

  1. Add a new pipeline and configure the details: name, trigger mode, and branch from which you want to deploy.

Image loading...Adding a new pipeline

Configure git pull with SSH

Warning
Make sure that you have Git installed on the server and that the remote path contains the repository clone.
  1. Look up and click SSH on the action list to add it to the pipeline:

Image loading...SSH protocol actions in Buddy

  1. The action has five configuration tabs:
  • Run CMDs – here you enter the commands to execute on the remote (git pull)
  • Target – here you provide the data of the server to which you want to connect
  • Variables – here you upload the key required to connect to the server and define environment variables
  • Conditions – here you configure the trigger conditions for which the action will run
  • Options – here you define the action's name and behavior on failure and timeout

Image loading...SSH action configuration

  1. When ready, click Add this action to finish configuration.
Success
Congratulations! You have just automated pulling changes with Git on your server. 🥳

Last modified on Sep 24, 2024