5.3 Set up Deployments

Lesson

5.3 Set up Deployments

Most data teams struggle with the gap between development and production environments. Mage Pro addresses this challenge by offering direct GitHub integration, which not only preserves your version control practices but transforms your deployment process from manual headaches into automated reliability.

Configuring your environment

Once you've logged into your Mage Pro account, you'll find the deployment controls in the left navigation panel:

  1. Navigate to the "Deploy" section in the sidebar

  2. Access the deployment settings panel to prepare your GitHub connection

  3. Double-check your project directory configuration, this is a common source of deployment failures

GitHub authentication

The GitHub connection process requires proper authentication to ensure secure access to your repositories:

  1. Select the "Connect" button to initiate the GitHub authentication flow

  2. Choose token-based authentication for enhanced security (this is particularly important when dealing with sensitive data pipelines)

  3. First-time users will need to complete a standard OAuth workflow on GitHub to grant the necessary permissions

  4. Return to the Mage Pro interface after authentication to verify connection status

  5. Choose an organization from the dropdown list under Organization

    1. If your organization is not available you can write in the Orgnization name in the text box below and then click Set organization.

    2. This will set the organization and it should appear with the correct organization logo in the drop down list above

  6. If you are connecting to a private repo you will need to click the purple “Install Mage Pro app on GitHub” button.

    1. Depending on your companies permissions, you may need a GitHub organization administrator to grant access to the application

  7. Select a repo from the dropdown lost

  8. Next select a production branch from the dropdown list

    1. If your branch is not showing in the dropdown list, type in the branch name in the text box below the branch dropdown and then click “Set branch”

    2. You will see the branch appear in box above.

  9. Click the “Next step to Deployment stages” button


Conclusion

You've now connected Mage Pro to your GitHub repository, establishing the secure foundation needed for professional CI/CD workflows. This connection enables automated deployment of your data pipelines from development to production.

In the next section, we'll explore the Version Control Application which is a visual interface that makes Git operations accessible through an intuitive graphical dashboard, complementing the command-line power of the Git Terminal you just learned.