DEV Community

Cover image for Update the Staging Environment at every commit
Sibelius Seraphini for Woovi

Posted on

13

Update the Staging Environment at every commit

If you do not have a Staging environment read this to understand the benefits of it.

After you have a Staging environment, you need to make sure that it keeps up to date in every commit on the main branch.

Trunk Based Development

There are many ways to develop software using Git.
The two most popular ones are Git Flow and Trunk-Based Development.

If you are using Git Flow I recommend you to read more about Trunk-Based Development and move to that Git workflow.

When using Trunk-Based Development every developer writes codes against a pull request and then merges directly to the main branch.

Automation

After the code is merged to the main branch it should trigger a pipeline in your CI/CD.

The minimal workflow is to run the tests, build the services, and make a deploy updating staging environment.

This makes sure staging is always up to date with the latest changes. Making it easy for anybody on the team to test new changes.

Try to automate as much as possible, so you don't need to ask if the staging is up to date anymore.

In Conclusion

Using Trunk Based development, feature flags, and having an automated CI/CD in place can save many hours of your developers so they can focus on generating value for the customers.
An up to date staging is essential to avoid breaking production.

Resources

Trunk Based Development Atlassian
Trunk Based Development


Woovi
Woovi is a Startup that enables shoppers to pay as they like. Woovi provides instant payment solutions for merchants to accept orders to make this possible.

If you want to work with us, we are hiring!

Imagine monitoring actually built for developers

Billboard image

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitor creation and configuration with Monitoring as Code.

Start Monitoring

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay