Using Azure Pipelines
You can build your custom Continuous Deployment jobs using Azure Pipelines and Bolt APIs.
Create a CD Bolt schedule
To start create a new Bolt schedule and make sure to add the deferred_schedule
configuration. Depending on your intended behavior you can choose to defer to another production job or defer back to the last CD run.
Example schedule
...
- name: continuous_deployment_run # the name of your CD job
deferred_schedule:
enabled: true # true to enabled this Turbo CI job to run on pull request
deferred_schedule_name: continuous_deployment_run #the name of the bolt schedule where the CD job will look for the most recent successful run manifest.json for state comparison
schedule: "OFF" # set the schedule configuration to not run on a schedule (to be used for PR only)
environment: production #the environment used to run the schedule -> this is always production
commands:
- dbt run --select state:modified+ #the dbt™️ command you want to run after the pull request is merged
owner_email: "john@acme.io" #the email of the CD job owner_email
...
Generate API keys and find you workspace token
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.
Create 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_KEY
PARADIME_API_SECRET
PARADIME_API_ENDPOINT
Last updated
Was this helpful?