Blog
GitFlow: governing the releases of a DAM platform
Branches, promotions between environments, Selenium tests and backports: how GitFlow secures the releases of a DAM platform from development to production.
4 min readZakaria EL MOUMNAOUI
- GitFlow
- CI/CD
- Selenium
- DAM

A reliable release depends as much on the workflow as on the code
In a DAM (Digital Asset Management) project, a platform for centrally managing digital assets such as images, visuals, metadata and catalogues, a release directly affects visible business journeys: creating items, editing product records, linking visuals, checking metadata, searching for assets and preparing catalogues.
A delivery error can therefore slow down business validation, break the item-image link or create a gap between what is tested in staging and what reaches production. The risk does not come only from the code, but also from the path that code follows: starting branch, review, validation, fix, promotion and go-live.
GitFlow provides a clear framework for governing this path. CI/CD pipelines and automated tests, in particular Selenium on critical DAM journeys, reinforce this framework by making certain delivery rules verifiable before each promotion.
The goal is simple: deliver with more control, fewer gaps between environments and better traceability of fixes.
1. GitFlow as a model for promotion between environments
When developing a DAM platform, several topics move forward in parallel: item management, image library, categories, search, validation screens, access rights, exports or catalogue preparation. Without a clear workflow, a fix may start from the wrong branch, a change may reach validation too early, or an urgent bug may never be merged back into the normal flow.
GitFlow meets this need by giving each branch a precise role.
| Branch | Role |
|---|---|
| dev | Integration of work in progress |
| stage | QA validation and release preparation |
| main | Stable version ready for production |
A feature starts from dev, comes back to dev via a Pull Request, moves to stage for validation, then joins main after final approval.
feature/DAM-123
▼
dev → stage → main → tag v1.2.0
This separation gives developers, QA, the Tech Lead and project stakeholders a common language. It also makes it possible to know at any time whether a change is in development, in validation or ready to be delivered.
2. Pipelines and tests make GitFlow better governed
GitFlow defines the rules for how code moves. CI/CD pipelines and automated tests check that these rules are followed.
The pipeline becomes a safeguard for the workflow: it can block a Pull Request if the build fails, if the basic tests do not pass, or if a critical Selenium scenario fails.
| Step | Expected check |
|---|---|
| feature/* → dev | Build, unit tests |
| dev → stage | Integration tests, critical DAM Selenium scenarios |
| stage → main | Final approval, green pipeline, release tag |
On the DAM platform, Selenium scenarios can target the most sensitive journeys: creating an item, editing its information, linking a main image, adding secondary images, checking search in the image library or checking how an item is displayed before validation.
These tests do not replace human validation. Above all, they avoid promoting a version that already fails on a critical business journey.
3. The real challenge: keeping fixes under control
The nominal case is simple: a feature starts from dev, moves to stage, then joins main. The real challenge appears when a bug is detected during validation.
A realistic example: a change to the item record is promoted to stage. During validation, a critical scenario fails: the item is created, but the main image is not correctly kept after saving, or the order between the main image and the secondary images is no longer respected. In a DAM, this kind of anomaly can block business validation and delay the preparation of a catalogue.
GitFlow then helps choose the right path.
| Situation | Decision |
|---|---|
| Non-blocking bug | fix/* from dev, then promotion in the next cycle |
| Blocking bug in staging | bugfix/* from stage, then backport to dev |
| Production incident | hotfix/* from main, then backport to stage and dev |
The backport is essential. It avoids quickly fixing stage or main while leaving dev in a divergent state. Without this rule, the next promotion can reintroduce the anomaly.
This is where GitFlow adds the most value: it stops urgent fixes from weakening the normal delivery cycle.
4. Governing without adding weight
A release workflow must remain sustainable. Not every check needs to run on every commit. The level of validation should increase gradually as the code gets closer to main.
A Pull Request to dev can stay light. A Pull Request to stage should step up functional checks on sensitive DAM journeys. A Pull Request to main must confirm that the version is stable, approved and traceable.
Several metrics can then help steer the workflow: Pull Requests stopped by the pipeline, anomalies detected before stage, blocking bugs in staging, dev → stage promotion time, number of backports and release-related incidents.
These metrics make it possible to adjust the GitFlow rules based on facts from the project, rather than on subjective perception.
Summary
GitFlow is not just a branching convention. It is a release governance model.
In a DAM project, it clarifies the roles of dev, stage and main, organises promotions between environments and secures the handling of fixes on sensitive features: items, images, metadata and catalogues.
CI/CD pipelines and Selenium tests reinforce this governance. They make the workflow more reliable, more traceable and harder to bypass.
This summary naturally leads to the next topics to explore: CI/CD, automated testing and infrastructure management, with a stronger QA angle.
The challenge is not only to deliver faster. It is to deliver with a higher level of confidence, knowing exactly what has been integrated, tested, fixed and promoted.


