Using Azure Pipelines
You can build your custom Continuous Deployment jobs using Azure Pipelines and Bolt APIs.
Setting up Continuous Deployment Bolt Schdeule
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:
dbt run --select state:modifiedSpecify 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 will allow the API to trigger multiple runsPublish Bolt Schedule: Save and activate your continuous deployment schedule.
Tutorial
Generate API keys
API keys are generate at a workspace level.
To be able to trigger Bolt using the API, you will first need to generate API keys for your workspace. Got to account settings and generate your API keys, make sure to save in your password manager:
API key
API secret
API Endpoint
You will need this later when setting up the secrete in Azure pipelines.
API KeysCreate an Azure Pipeline
Now you will need to create a new azure-pipeline.yml file in your dbt™️ repository. Copy the code block below and enter the values required.
Add the API keys and Credential in the Azure Pipeline variables
Finally you need to add the API key and credentials generated in the previous step in Azure Pipelines.
Set the corresponding values using your credentials for the variable names:
PARADIME_API_KEYPARADIME_API_SECRETPARADIME_API_ENDPOINT
Last updated
Was this helpful?