Using GitLab Pipelines
Create a CD Bolt schedule
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: "[email protected]" #the email of the CD job owner_email
...Generate API keys and find you workspace token
Create a GitLab Pipeline
Add the API key and Credential in the GitLab variables
Last updated
Was this helpful?