Reputation: 49
I want to propose Gitflow for our new web application. We have QA environment where product acceptance testing is done before release. I want to know which branch should be deployed to QA - release branch or master? Which branch should be deployed to production? If we deploy and test the release branch and then merge it back to master who will test master?
Upvotes: 2
Views: 746
Reputation: 12295
The release
branch is meant to be sent through QA validation and deployment process.
So your release
branch would be sent to QA environment. Once validation is complete, release
branch would be deployed. Once deployment is successful, release
branch would be merged into master
.
master
should always represent the code that is currently running on production. That way if you needed to issue a hotfix while the current release
branch is being validated, you could branch off of master
. Or if for some reason you needed to redeploy a production instance you would deploy master
.
Upvotes: 5
Reputation: 1324347
want to know which branch should be deployed to QA - release branch or master?
I would argue release
: QA should test what comes before what you end up deploying.
Which branch should be deployed to production?
master
, the one where you tag the release with its name.
Upvotes: 0