By Christian Ayala on 1/4/2021
If you‚Äôre a developer, then you‚Äôve probably heard the acronym ‚ÄúCI/CD‚Äù: Continuous Integration / Continuous Deployment. When creating a new application we often start with the CI part by setting up some kind of an automated build pipeline. This pipeline can run all sorts of things, including:
At OMG, we add additional steps to the ones listed above to ensure that the features we deploy are ‚ÄúROSy‚Äù – Redundant, Optimized, and Scalable. In order for your code to be deemed ‚Äúready for deployment‚Äù, all steps in the CI pipeline must successfully pass. It then moves through the CD pipeline.
All OMG engineers are able to run the full OMG Platform on their laptops through a network of Docker containers. These containers mimic the structure and network topology of our various cloud environments, with some minor differences. This facsimile is known as a dev environment, and a developer is free to read / write any data in their environment.
Some handy Bash scripts exist to expedite the process: entering a simple omg-dev start command at the beginning of your day is enough to get your environment up and running. An omg-dev update command ensures that your environment is up to date across all of our services, even ones you don‚Äôt directly interact with. Lastly, an appropriately named omg-dev burn-it-all command clears your environment back to square zero.
As we develop new features and push new code to Github, CI builds are automatically triggered to ensure that no regressions are found and that our code maintains a high standard of quality.
Now we dive into the Continuous Deployment pipeline! Each small team of engineers has their own cloud environment where they can deploy and test changes. Every time a repo is updated by pushing code to a branch, a message is sent to a specific Slack channel. An engineer can then ‚Äúreact‚Äù to the message with a specific emoji when they‚Äôre ready to deploy those changes. That reaction kicks off a job that runs the CI pipeline followed by a CD pipeline to deploy it to their environment.
Figure 1: A few of our custom deployment emoji. Our environments are named after animals, so reacting with a specific animal runs a CD job to deploy code to that environment.
Because our staging environments are structured just like our production environment, this makes testing on production-like environments a one-click action! A developer can test their changes as soon as they are ready without worrying about the intricacies of deployments; likewise, a site-reliability engineer can update the deployment pipeline without impacting a developer‚Äôs work cadence.
A similar process exists to deploy changes to production. Once code goes through our quality control processes, it‚Äôs then merged into the master branch of the repository. Like before, it‚Äôs a one-click process to deploy the changes to production.
In a true ‚ÄúContinuous Deployment‚Äù fashion, that code would be deployed as soon as it is merged into the master branch. That‚Äôs not always the best idea, however, as certain changes necessitate waiting for the ‚Äúright time‚Äù in favor of the ‚Äúright now.‚Äù With this process we can control the rollout of a feature to minimize any possible impact to our customers, while still keeping manual deployment work to an absolute minimum.
Our engineers at OMG are some of the brightest in the industry, and we‚Äôve developed tools to let us focus on what we do best: rapidly delivering high-value features for our customers. #OMGRocks
Christian Ayala – OMG‚Äôer #148
Connect with me on LinkedIn
OrderMyGear is an industry-leading sales tool, empowering dealers, distributors, decorators, and brands to create custom online pop-up stores to sell branded products and apparel. Since 2008, OMG has been on a mission to simplify the process of selling customized merchandise to groups and improve the ordering experience. With easy-to-use tools, comprehensive reporting, and unmatched support, the OMG platform powers online stores for over 3,000 clients generating more than $1 billion in online sales. Learn more at www.ordermygear.com.
Media Contact: Hayley Bell | email@example.com | 214-396-2110