Seed can optionally allow you to connect to your own CI (continuous integration) service. This can be useful for cases where you have a complex set of tests or checks that need to be run before your app can be deployed. Or if your Serverless app needs to be deployed as a part of your existing infrastructure. By default, Seed will deploy your app automatically on
git push to a branch. But you can optionally tell Seed that you only want to deploy after your CI process has completed successfully.
We currently support the Connect Your CI option for GitHub and Bitbucket. Contact us if you’d like to use it for GitLab.
You can enable this option by heading to your app Settings and hitting Connect Your CI.
Let’s look at how this setting works in detail.
Seed integrates with the GitHub Checks API to connect to your CI. The following services are supported:
- GitHub Actions
- Travis CI
- CircleCI: By default, CircleCI does not enable GitHub Checks. You can enable this from your CircleCI settings — circleci.com/docs/2.0/enable-checks/.
When the Connect Your CI option is enabled for GitHub, Seed will:
- Listen for the Check Suite to complete successfully,
- And ensure that it was either triggered by GitHub Actions, Travis CI, or Circle CI.
For Bitbucket, Seed relies on the commit status. CI services like Travis CI or CircleCI update the commit status after their build process. So if you enable the Connect Your CI option, then Seed will wait until the CI process has completes and updates the commit status.
Note that with the above option enabled, you can still manually trigger deployments through the Seed console just as before.