Migrate the database of a Spring Boot app in a CI/CD pipeline with Flyway

CI/CD pipelines allow to build and deploy applications. But update databases is a much more complex task. The Flyway open source software has a solution to solve this problem.

In this sorry, we will see how to apply an update of a database with Flyway from a Spring Boot application. How you will see, Flyway can be integrated in a CD pipeline.

In first, let’s create a flyway directory et enter inside:

mkdir flyway
cd flyway



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store