Create a pipeline in Database DevOps
- In Harness, go to the Database DevOps module and select your Project.
- Ensure that the database schema you want to deploy is already set up. You can find the steps about how to create your database schema in the Deploying Database Schemas documentation.
- Select Pipelines in the left nav bar, then Create a Pipeline.
- In the pipeline configuration, add the stage, or multiple stages, that align with the actions you want to perform. The options are:
- Add a Stage for Database Deployment: a stage that will handle the deployment of your database schema changes.
- Add a Stage for Application Deployment: This stage will manage the deployment of your application code.
- Configure the Database Deployment stage to your liking if it's a step you've added.
- Configure the Application Deployment stage to your liking if it's a step you've added.
- Continue following the steps, set up the rollback mechanisms and validate the pipeline configuration.
- Once the pipeline is configured to your liking, select Save pipeline.
info
To add a Liquibase command step, you can refer to the Harness documentation detailing how to Add a Liquibase Command Step