Setup Buddy for Automatic Deployments

Once your integration has been created in Atomic, you can configure Buddy to use the Pagely deployment integration with your git repository.

Note: The instruction below assumes you have already created a new integration in Atomic.

Connect Your Git Repository and Create a Pipeline

  1. Login into your Buddy account.

  2. Create a new project by clicking on the New project button:

  3. Next, refer to the relevant guide below to connect Buddy to your git repository:

  4. Click on the New pipeline button:

  5. In the New pipeline setup:

    • Add the name (eg. "Deploy to production").
    • Pick the trigger (manual, on code change, or on schedule).
    • Pick the branch.
  6. After clicking Add pipeline, you will be asked to add the first action, but we'll cover that shortly.

Set Up Your Integration Secret Key

  1. Go to you project and click the Variables, Keys & Assets in the sidebar.

  2. Click Add... and select Add variable.

  3. Set the name as PAGELY_INTEGRATION_SECRET and fill the value with the Integration Secret that was generated for you in Atomic.

  4. Make sure the encrypted checkbox is checked.

  5. Press the Add this variable button.

Create a Deployment Pipeline

  1. In your pipeline, add a new action by clicking the Add action button.

  2. Next, refer to the Custom Build action. Input is required in the commands section, so you can simply use a comment, such as '#Pagely Deployment'.

  3. Change the docker image to use the pagely/pagely-vps-deploy.

  4. Add the rest of the variables in the Variables tab.

    Remember to set up the:

    • PAGELY_APP_ID
    • PAGELY_DEPLOY_DEST
    • PAGELY_INTEGRATION_ID

    Note: If your code is located inside of a separate source directory, you can set it with PAGELY_WORKING_DIR.

  5. Lastly, press the Run button to deploy your code.

You have now completed setting up automatic deployments with Buddy.