CI CD Workflows

Sep 05, 2020

Continuous Deployment #

Below are some of the patterns that are useful when thinking of applying CI/CD to your projects.

1. Xtreme Programming (XP) #
PAIR PROGRAMMERSFEATUREBRANCHPAIRCOMMITSONBRANCH12PAIRRAISESPULL REQUEST CISYSTEMEACHCOMMITIS BUILT ANDTESTED ON CI.PAIR ENSURESTHE BRANCH IS ALWAYS "GREEN".TEST FORINTEGRATION,SMOKE TESTSCI COMMITS TOMASTER ONSUCCESSWITH NEWTAG3v1.0.1MASTERBRANCH4BUILDFOR TAGv 1.0.1v1.0.15BUILD ARTIFACTFOR TAG.PUSH TO ARTIFACTORY(OPTIONAL)6DEPLOYv1.0.1 TOPRODUCTIONENVIRONMENTPRODUCTIONENVIRONMENTDAILYREBASESFROM MASTER
2. Classic setup with code review #
MASTERBRANCHFEATUREBRANCHDEV(s)COMMITTHEIR CHANGES12A DEVRAISESPULL REQUEST CISYSTEMEACHCOMMITIS BUILT ANDTESTED ON CI.PAIR ENSURESTHE BRANCH IS ALWAYS "GREEN".TEST FORINTEGRATION,SMOKE TESTSCI COMMITS TOMASTER ONSUCCESSWITH NEWTAG3v1.0.14BUILDFOR TAGv 1.0.1v1.0.15BUILD ARTIFACTFOR TAG.PUSH TO ARTIFACTORY(OPTIONAL)6DEPLOYv1.0.1 TOPRODUCTIONENVIRONMENTPRODUCTIONENVIRONMENTREVIEWERWORKS WITH DEVTO ENSURE STANDARDSARE METAPPROVESPULL REQUESTDAILYREBASESFROM MASTER
3. Conscientious Deployment #
STAGINGPRE-PRODUCTIONPRODUCTIONCISYSTEMv1.0.156DEPLOYv1.0.1 TOSTAGINGQA VALIDATESINDIVIDUAL STORY/FEATURE ONSTAGINGQA/POPROMOTESv 1.0.1 TO PRE-PRODON VALIDATIONSUCCESS7TEAMPROMOTESTHE v1.0.1TO PRODPO/QA VALIDATESTHE SANITY OF THE BUILD WITH PROD LIKEENVVIRONMENT AND ADHOC TESTING8v1.0.1 SWITCH/GATESIN CI WORKFLOWTHAT OPEN ONMANUAL INTERACTION