GitHub Native Continuous Deployment
Paradime Bolt offers a powerful GitHub-native Continuous Deployment (CD) feature that automatically deploys changes to your production environment as soon as they're merged into your production branch.
Key features:
Triggers every time a pull request is merged into your specified git branch (e.g.,
main
)Ideal for CI/CD workflows
Increases the speed of deploying changes to production
Refreshes or creates tables immediately after code changes are merged
Prerequisites
Before setting up GitHub Native Continuous Deployment with Bolt, ensure you have:
A production data warehouse connection in Paradime.
GitHub app in Paradime installed and granted necessary access to your repository.
Github User-level OAuth configured in Paradime.
Setting up GitHub Native Continuous Deployment
Create or Edit a Bolt Schedule: In the Bolt UI, create a new schedule or modify an existing one.
Set Schedule Type to
deferred
: This allows your job to leverage results from previous runs, improving efficiency.Name your continuous deployment schedule: Choose a descriptive name for easy identification.
Choose a Bolt Schedule to defer to: Select a previous job run to use as a reference, either from the same schedule or a different one.
Set the comparison method: Determine how the current run compares with previous runs (e.g.,
Last Run
,Last Successful Run
).Enter dbt Commands: Specify the dbt tasks to execute as part of the continuous deployment. For example:
Specify the Git Branch: Choose which branch of your dbt project will be used when the continuous deployment is triggered (e.g.,
main
).Set Trigger Type to
On Merge
: This automatically triggers the schedule when a pull request is merged into the specified Git branch.Publish Bolt Schedule: Save and activate your continuous deployment schedule.
Tutorial
Best Practices
Selective Runs: Use
state:modified+
in your dbt™ run command to only execute changed models and their dependencies.Deferred State: Configure the schedule to defer to its own last successful run for efficient incremental builds.
Branch Selection: Typically set up for your main production branch, but can be configured for other branches if needed.
Viewing Output of CD Schedules
The Bolt UI provides an interface to view additional details about your continuous deployment schedule, including:
dbt™ Command Artifacts
.yml code behind Bolt UI Schedules
See logs of executed models
See Viewing Schedule Output for details.
YAML Configuration
You can also configure GitHub Native Continuous Deployment with Bolt via the paradime_schedules.yml
file. Here's an example:
Last updated