Idea-to-production enhancement to show demo with database usage

Description

Our team is really inspired with the i2p demo and wants to sell GitLab CI with OpenShift setup for the new project. We've encountered one major difficulty: how to manage databases and database migrations? Our commits contain full DB and DB migrations, but we cannot find out how to execute migration scripts after deployment. Together with that, review stage should bring up full database from repository (all cli scripts are inside too) but staging and production databases should be just updated with repository data.

Proposal

Could you give some information on how to execute migration scripts from .gitlab-ci.yml when using with OpenShift? They should be different for review and for staging/production.

Edited Oct 02, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading