Having a PR that captures your deployments’ information opens the door for CI/CD automated jobs that are triggered upon creation and / or changes to the PR. These automated jobs can leverage Salto’s CLI in order to automate deployment preview checks, validation runs and deployment / promotion of changes.
Setup instructions and complete CLI interface can be found here.
Injecting CI Configuration Files
In order to trigger CI jobs upon PR creation / modification, the git branches should include configuration files for the CI tool that is being used.
To Inject your CI config files into the branches created by Salto:
Create a branch in the same repository in which the PRs are created and push any CI configuration files. CI files examples for Salto can be found here
In the version control section of the environment settings, click the 'Select Branch' button located next to 'CI/CD configuration file location'.
To learn how to protect your environment Git branches, follow this guide.