[{"data":1,"prerenderedAt":1203},["ShallowReactive",2],{"/blog/making-ci-easier-with-gitlab":3,"navigation-en-us":453,"banner-en-us":889,"footer-en-us":897,"blog-post-authors-en-us-Rob Ribeiro":1143,"blog-related-posts-en-us-making-ci-easier-with-gitlab":1158,"blog-share-wrapper-en-us":1183,"next-steps-en-us":1193},{"id":4,"title":5,"authors":6,"body":8,"category":423,"date":424,"description":425,"extension":426,"externalUrl":427,"faq":427,"featured":428,"heroImage":429,"hidePromo":428,"meta":430,"navigation":440,"path":441,"seo":442,"slug":446,"stem":447,"tags":448,"template":451,"updatedDate":427,"__hash__":452},"blogPosts/en-us/blog/making-ci-easier-with-gitlab.md","Making CI/CD easier with GitLab",[7],"Rob Ribeiro",{"type":9,"value":10,"toc":415},"minimark",[11,27,40,45,88,125,135,145,151,157,160,182,241,247,265,268,272,275,289,292,300,303,318,321,329,332,338,341,347,357,363,366,372,387,390,394,407,412],[12,13,14,15,21,22,26],"p",{},"At ",[16,17,20],"a",{"href":18,"rel":19},"https://www.trek10.com/",[],"Trek10",", we always try to consider the need for automation and repeatability with everything that we do. That’s why we focus on using tools like CloudFormation, ",[16,23,25],{"href":24},"/topics/serverless/","Serverless",", and CI/CD, as well as building other tools. Recently, I was tasked with doing various maintenance tasks on a number of internal tools/projects. Some needed upgrades from Node.js 0.10, some needed code fixes, and most needed CI/CD. Today, we’re just going to focus on the CI/CD part.",[12,28,29,30,34,35,39],{},"In spite of my past experience with Jenkins and TeamCity and our team’s experience with AWS (CodePipeline/CodeDeploy), I chose ",[16,31,33],{"href":32},"/topics/ci-cd/","GitLab CI/CD"," to standardize these projects. The biggest reason for this choice is history. As a project evolves, its CI/CD configuration may change. If you ever need to go back in time, you may have difficulty deploying again. Since GitLab CI/CD is based on a ",[36,37,38],"code",{},".gitlab-ci.yml"," config file that is committed with the code, as long as a commit built and deployed then, it stands a pretty good chance of building and deploying now. Being able to tweak CI/CD without leaving my editor was an additional bonus.",[41,42,44],"h3",{"id":43},"crash-course-in-gitlab-cicd","Crash course in GitLab CI/CD",[12,46,47,48,50,51,53,54,57,58,61,62,65,66,69,70,73,74,69,76,79,80,83,84,87],{},"GitLab CI/CD relies on having a ",[36,49,38],{}," file in the root of your repo. CI/CD for each commit is run against the ",[36,52,38],{}," that is current for that commit. The fundamental unit of CI/CD for GitLab is a “job”. A job is a construct that runs a bash script against a commit in a particular context. You might have one job to run tests, other jobs to build for staging or production, and other jobs to deploy to particular environments. In the config file, jobs are represented by top level maps (aka “objects”) that are not otherwise “reserved” GitLab CI/CD maps. Examples of reserved top level maps: ",[36,55,56],{},"image"," (Docker image in which your jobs run), ",[36,59,60],{},"services"," (other Docker images that need to run while your jobs run), ",[36,63,64],{},"before_script"," (runs before every ",[36,67,68],{},"script","), ",[36,71,72],{},"after_script"," (runs after every ",[36,75,68],{},[36,77,78],{},"stages"," (redefines the stage names and order), ",[36,81,82],{},"variables"," (variables available to all jobs), and ",[36,85,86],{},"cache"," (controls what is cached between CI/CD runs; good for stuff from your package manager).",[12,89,90,91,94,95,98,99,98,101,104,105,98,107,98,109,111,112,114,115,117,118,120,121,124],{},"Every job must belong to a stage (if left out, ",[36,92,93],{},"test"," is the default). Stages are run in a sequence, and all of the jobs in a stage run with max parallelism available. The default stage sequence is: ",[36,96,97],{},"build",", ",[36,100,93],{},[36,102,103],{},"deploy",". Each job also has ",[36,106,64],{},[36,108,72],{},[36,110,82],{},", and ",[36,113,86],{},". Defining these at a job level will override the top-level configuration. The most important of these is ",[36,116,82],{},", because your variables are what make the production deploy job’s context different from the staging deploy job’s context. ",[36,119,82],{}," is just a map with a bunch of key value pairs. Variables are consumed with a syntax similar to bash: ",[36,122,123],{},"${myVar}",". There are some limitations that you should know:",[126,127,128,132],"ul",{},[129,130,131],"li",{},"Variables do not support bash variable expansions, substitutions, defaults, etc.",[129,133,134],{},"Variables do not recurse or have a sense of order of evaluation, but top level variables can be used in job level variables. See the following examples:",[136,137,143],"pre",{"className":138,"code":140,"language":141,"meta":142},[139],"language-text","# You CANNOT do this (referencing a sibling variable in the same map)\nvariables:\n    PROD_STAGE_NAME: prod\n    PROD_URL: https://thisismywebsite.com/${PROD_STAGE_NAME}\n\n","text","",[36,144,140],{"__ignoreMap":142},[136,146,149],{"className":147,"code":148,"language":141,"meta":142},[139],"# You CAN do this (referencing a top-level variable from a job's variables map)\nvariables:\n    PROD_STAGE_NAME: prod\n\nmy_job:\n    variables:\n        STAGE_NAME: ${PROD_STAGE_NAME}\n\n",[36,150,148],{"__ignoreMap":142},[136,152,155],{"className":153,"code":154,"language":141,"meta":142},[139],"# But you CANNOT do something like this (nested variables)\nvariables:\n    CURRENT_STAGE: PROD\n    PROD_STAGE_NAME: prod\n\nmy_job:\n    variables:\n        STAGE_NAME: ${${CURRENT_STAGE}_STAGE_NAME}\n\n",[36,156,154],{"__ignoreMap":142},[12,158,159],{},"That last example gives us a ton of power. We’ll be sure to abuse that as we go.",[12,161,162,163,165,166,98,169,111,172,175,176,178,179,181],{},"As mentioned before, jobs run a bash script in a context. So every job must have a ",[36,164,68],{},". The last big thing that you need is “flow control”. By default, a job will run on every commit. Using the ",[36,167,168],{},"only",[36,170,171],{},"except",[36,173,174],{},"when"," keys allows you to control how jobs are triggered. ",[36,177,168],{}," and ",[36,180,171],{}," accept the following options:",[126,183,184,194,197,200,227,238],{},[129,185,186,187,190,191],{},"Branch names, e.g. ",[36,188,189],{},"master"," or ",[36,192,193],{},"develop",[129,195,196],{},"Tag names",[129,198,199],{},"JS style RegExp literals to evaluate against branch/tag names",[129,201,202,203,98,206,98,209,98,212,98,215,98,218,98,221,111,224],{},"These special keywords: ",[36,204,205],{},"api",[36,207,208],{},"branches",[36,210,211],{},"external",[36,213,214],{},"tags",[36,216,217],{},"pushes",[36,219,220],{},"schedules",[36,222,223],{},"triggers",[36,225,226],{},"web",[129,228,229,230,178,232,234,235,237],{},"Using ",[36,231,208],{},[36,233,214],{}," with ",[36,236,168],{}," cause a job to be run for every branch or tag, respectively",[129,239,240],{},"Repo path filters to deal with repo forks",[12,242,243,244],{},"One more important fact: jobs that start with a period character are disabled, e.g.: ",[36,245,246],{},".my_disabled_job",[12,248,249,250,255,256,258,259,264],{},"That should be enough to get us started. You can find more ",[16,251,254],{"href":252,"rel":253},"https://docs.gitlab.com/ci/",[],"GitLab CI/CD documentation here",". The most useful bit is the ",[36,257,38],{}," reference found ",[16,260,263],{"href":261,"rel":262},"https://docs.gitlab.com/ci/yaml/",[],"here",".",[12,266,267],{},"As with any new tool, I got to read and re-read the documentation and make some mistakes getting things right. By the time I was knee-deep in this, I realized there was a need to prevent anyone from having to do this again, myself included. The solution requires two things: a well-designed CI/CD template and a way to get that template into all of your new repositories. Let’s tackle template design next.",[41,269,271],{"id":270},"designing-a-template","Designing a template",[12,273,274],{},"This part is hard to talk about in a completely generic manner. Instead, let’s walk through our use case. Looking at our projects past and present, I could usually bet on these characteristics:",[126,276,277,280,283,286],{},[129,278,279],{},"Deploys to AWS (we are an AWS consultancy after all…)",[129,281,282],{},"Uses Serverless framework with Node.js or Python",[129,284,285],{},"May deploy production to multiple regions",[129,287,288],{},"May deploy different stages to different accounts",[12,290,291],{},"In addition, I realized that I needed these other options:",[126,293,294,297],{},[129,295,296],{},"May need to “disable” dev/staging from doing real work",[129,298,299],{},"May want one dev environment per branch",[12,301,302],{},"Finally, we decided on the following deployment strategy:",[126,304,305,310,315],{},[129,306,307,308],{},"Production deploys via tags on ",[36,309,189],{},[129,311,312,313],{},"Staging deploys on commits/merges to ",[36,314,189],{},[129,316,317],{},"Dev deploys should work for all other branches (we’re not going to implement this one in this post)",[12,319,320],{},"My roots are as a software developer, so making things reusable is a core skill at this point. A good template is going to make it super easy for the intended cases and be fairly adaptable for other uses. Here is the goal:",[126,322,323,326],{},[129,324,325],{},"One script per stage. That means only one test script, one build script, and one deploy script. Oh, and keep it DRY.",[129,327,328],{},"Jobs should be as similar as possible, and differences should be tweaked by top level variables.",[12,330,331],{},"Let’s focus on that single script per stage. We’re not going to cover how to write the deployment script, but we’ll focus on the deploy stage. But let’s say we start with a deployment job like this:",[136,333,336],{"className":334,"code":335,"language":141,"meta":142},[139],"deploy:production:\n    stage: deploy\n    script: |\n        # assume ${DEPLOYMENT_ROLE} in AWS\n        # install dependencies\n        # run serverless deployment with ${STAGE_NAME} ${REGION}\n    variables:\n        DEPLOYMENT_ROLE: arn:aws:iam::1234567890:role/gitlab-ci-deployment\n        STAGE_NAME: prod\n        REGION: us-east-1\n        ACCOUNT: \"1234567890\"\n    only:\n        - tags\n\n",[36,337,335],{"__ignoreMap":142},[12,339,340],{},"Now we could copy and tweak this for staging and dev, but that’s not what we’re after. First, let’s break the script off to a reusable chunk and use it in our staging deploy:",[136,342,345],{"className":343,"code":344,"language":141,"meta":142},[139],".deployment_script: &deployment_script\n    stage: deploy\n    script: |\n        # assume ${DEPLOYMENT_ROLE} in AWS\n        # install dependencies\n        # run serverless deployment with ${STAGE_NAME} ${REGION}\n\ndeploy:production:\n    \u003C\u003C: *deployment_script\n    variables:\n        DEPLOYMENT_ROLE: arn:aws:iam::1234567890:role/gitlab-ci-deployment\n        STAGE_NAME: prod\n        REGION: us-east-1\n        ACCOUNT: \"1234567890\"\n        PRODUCTION: \"true\"\n    only:\n        - tags\n\ndeploy:staging:\n    \u003C\u003C: *deployment_script\n    variables:\n        DEPLOYMENT_ROLE: arn:aws:iam::0987654321:role/gitlab-ci-deployment\n        STAGE_NAME: staging\n        REGION: us-east-1\n        ACCOUNT: \"0987654321\"\n    only:\n        - master\n\n",[36,346,344],{"__ignoreMap":142},[12,348,349,350,353,354,356],{},"Using YAML anchors and references, we can inject the script into all of our deployment jobs. Notice that the deployment script is disabled. This is because we don’t want it to run in parallel with all of our intended jobs. We also added a ",[36,351,352],{},"PRODUCTION"," environment variable to just the production deploy to allow our script to pick that up too. If your code knows about this, you can use this to turn on/off production-only features. Now, we can make this cleaner and easier for our developers by pulling all of the ",[36,355,82],{}," to a top-level variables map at the top of the file:",[136,358,361],{"className":359,"code":360,"language":141,"meta":142},[139],"variables:\n    PROD_ACCOUNT: \"1234567890\"\n    PROD_STAGE_NAME: prod\n    PROD_REGION: us-east-1\n    STAGING_ACCOUNT: \"0987654321\"\n    STAGING_STAGE_NAME: staging\n    STAGING_REGION: us-east-1\n\n.deployment_script: &deployment_script\n    stage: deploy\n    script: |\n        # assume ${DEPLOYMENT_ROLE} in AWS\n        # install dependencies\n        # run serverless deployment with ${STAGE_NAME}, ${REGION}, and ${ACCOUNT}\n\ndeploy:production:\n    \u003C\u003C: *deployment_script\n    variables:\n        DEPLOYMENT_ROLE: \"arn:aws:iam::${PROD_ACCOUNT}:role/gitlab-ci-deployment\"\n        STAGE_NAME: ${PROD_STAGE_NAME}\n        REGION: ${PROD_REGION}\n        ACCOUNT: ${PROD_ACCOUNT}\n        PRODUCTION: \"true\"        \n    only:\n        - tags\n\ndeploy:staging:\n    \u003C\u003C: *deployment_script\n    variables:\n        DEPLOYMENT_ROLE: \"arn:aws:iam::${STAGING_ACCOUNT}:role/gitlab-ci-deployment\"\n        STAGE_NAME: ${STAGING_STAGE_NAME}\n        REGION: ${STAGING_REGION}\n        ACCOUNT: ${STAGING_ACCOUNT}\n    only:\n        - master\n\n",[36,362,360],{"__ignoreMap":142},[12,364,365],{},"Now, that’s looking more reusable, and we have accomplished our second goal of making the jobs very similar and controlled by top-level variables. This makes it easy for anyone who fits the template’s use case perfectly to reuse it. We could easily add the dev environment, but we’ll skip that in favor of illustrating multi-region production deploys:",[136,367,370],{"className":368,"code":369,"language":141,"meta":142},[139],"variables:\n    PROD_ACCOUNT: \"1234567890\"\n    PROD_STAGE_NAME: prod\n    PROD1_REGION: us-east-1\n    PROD2_REGION: us-west-2\n    STAGING_ACCOUNT: \"0987654321\"\n    STAGING_STAGE_NAME: staging\n    STAGING_REGION: us-east-1\n\n.deployment_script: &deployment_script\n    stage: deploy\n    script: |\n        # assume ${DEPLOYMENT_ROLE} in AWS\n        # install dependencies\n        # run serverless deployment with ${STAGE_NAME}, ${REGION}, and ${ACCOUNT}\n\n.production_variables\n    DEPLOYMENT_ROLE: \"arn:aws:iam::${PROD_ACCOUNT}:role/gitlab-ci-deployment\"\n    STAGE_NAME: ${PROD_STAGE_NAME}\n    ACCOUNT: ${PROD_ACCOUNT}\n    PRODUCTION: \"true\"    \n\ndeploy:production_1: &deploy_production\n    \u003C\u003C: *deployment_script\n    variables:\n        \u003C\u003C: *production_variables\n        REGION: ${PROD1_REGION}\n    only:\n        - tags\n\ndeploy:production_2:\n    \u003C\u003C: *deploy_production\n    variables:\n        \u003C\u003C: *production_variables\n        REGION: ${PROD2_REGION}        \n\ndeploy:staging:\n    \u003C\u003C: *deployment_script\n    variables:\n        DEPLOYMENT_ROLE: \"arn:aws:iam::${STAGING_ACCOUNT}:role/gitlab-ci-deployment\"\n        STAGE_NAME: ${STAGING_STAGE_NAME}\n        REGION: ${STAGING_REGION}\n        ACCOUNT: ${STAGING_ACCOUNT}\n    only:\n        - master\n\n",[36,371,369],{"__ignoreMap":142},[12,373,374,375,378,379,382,383,386],{},"Notice that we have changed the job names to reflect having multiple regions. In addition, we are making use of YAML anchors and references to copy the entire ",[36,376,377],{},"deploy:production_1"," job into ",[36,380,381],{},"deploy:production_2"," and then we just override the ",[36,384,385],{},"REGION"," variable. This makes adding additional regions super easy.",[12,388,389],{},"What’s more useful at this point is that, as long as you have made your script flexible enough, you can now distribute this to your development team as a template. If their project fits the script and configuration perfectly, they should just have to fill in the correct values for the top-level variables and go. For those needing something different, they should hopefully be able to just tweak the script. Now, we just need to solve the problem of making sure that they actually use the template…",[41,391,393],{"id":392},"automatic-cicd-injection-with-gitlab-and-aws-lambda","Automatic CI/CD injection with GitLab and AWS Lambda",[12,395,396,397,401,402,406],{},"I was inspired by GitHub’s option to select a .gitignore and license during the repo creation process. What if we could have that for CI? Forking GitLab and figuring out how to hack this in did not sound like a quick or easy thing to do. However, after a little research, I found that we could use a system hook to trigger a Lambda that could inject the desired template via the commit API. This part is not as interesting to read about, so we did one better: we have open sourced this tool so you can deploy it in your environment. Check out the repo ",[16,398,263],{"href":399,"rel":400},"https://github.com/trek10inc/gitlab-boilerplate-injector",[],". And if you’re looking for someone to help you implement these and other awesome automations and AWS solutions, we would love to talk to you. Feel free to reach out to us at ",[16,403,405],{"href":404},"mailto:info@trek10.com","info@trek10.com"," for more. Thanks for reading!",[408,409,411],"h2",{"id":410},"about-the-guest-author","About the Guest Author",[12,413,414],{},"Rob has spent his career honing his interpersonal, technical, and problem solving skills. He spent five years in customer service and management, followed by over five years in software development and consulting. He has experience working and consulting for everything from startups to Fortune 500 enterprises in a variety of industries including manufacturing, healthcare, and finance. Rob has earned a MS in Applied Mathematics and Computer Science from Indiana University and a BS in Pharmaceutical Sciences from Purdue University.",{"title":142,"searchDepth":416,"depth":416,"links":417},2,[418,420,421,422],{"id":43,"depth":419,"text":44},3,{"id":270,"depth":419,"text":271},{"id":392,"depth":419,"text":393},{"id":410,"depth":416,"text":411},"engineering","2017-07-13","The team at Trek10 tries to consider the need for automation and repeatability with everything they do. One team member gives a crash course in GitLab CI/CD and explains how they use it.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749680423/Blog/Hero%20Images/making-ci-easier-with-gitlab.jpg",{"excerpt":431},{"type":9,"value":432},[433],[12,434,14,435,21,438,26],{},[16,436,20],{"href":18,"rel":437},[],[16,439,25],{"href":24},true,"/en-us/blog/making-ci-easier-with-gitlab",{"title":5,"description":425,"ogTitle":5,"ogDescription":425,"noIndex":428,"ogImage":429,"ogUrl":443,"ogSiteName":444,"ogType":445,"canonicalUrls":443},"https://about.gitlab.com/blog/making-ci-easier-with-gitlab","https://about.gitlab.com","article","making-ci-easier-with-gitlab","en-us/blog/making-ci-easier-with-gitlab",[449,450],"CI/CD","user stories","BlogPost","y81lkWYUCXwSh2n02OnFZYkg5qlRVCRmHgoqZTjIfMk",{"logo":454,"freeTrial":459,"sales":464,"login":469,"items":474,"search":808,"minimal":840,"duo":859,"switchNav":868,"pricingDeployment":879},{"config":455},{"href":456,"dataGaName":457,"dataGaLocation":458},"/","gitlab logo","header",{"text":460,"config":461},"Get free trial",{"href":462,"dataGaName":463,"dataGaLocation":458},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":465,"config":466},"Request a demo",{"href":467,"dataGaName":468,"dataGaLocation":458},"/request-a-demo/","sales",{"text":470,"config":471},"Sign in",{"href":472,"dataGaName":473,"dataGaLocation":458},"https://gitlab.com/users/sign_in/","sign in",[475,560,648,653,732,786],{"text":476,"left":440,"config":477,"menu":479},"Platform",{"dataNavLevelOne":478},"platform",{"type":480,"link":481,"columns":485,"feature":549},"lists",{"text":482,"config":483},"Explore the Platform",{"href":484,"dataGaName":478,"dataGaLocation":458},"/platform/",[486,508,531],{"title":487,"items":488},"DevOps",[489,493,498,503],{"text":449,"config":490},{"href":491,"dataGaLocation":458,"dataGaName":492},"/solutions/continuous-integration/","ci/cd",{"text":494,"config":495},"Source Code Management",{"href":496,"dataGaLocation":458,"dataGaName":497},"/solutions/source-code-management/","source code management",{"text":499,"config":500},"Agile Delivery",{"href":501,"dataGaLocation":458,"dataGaName":502},"/solutions/agile-delivery/","agile delivery",{"text":504,"config":505},"Artifact Management",{"href":506,"dataGaLocation":458,"dataGaName":507},"/artifact-central/","artifact management",{"title":509,"items":510},"Security & Governance",[511,516,521,526],{"text":512,"config":513},"Application Security Testing",{"href":514,"dataGaLocation":458,"dataGaName":515},"/solutions/application-security-testing/","application security testing",{"text":517,"config":518},"Governance & Compliance",{"href":519,"dataGaLocation":458,"dataGaName":520},"/solutions/software-compliance/","governance and compliance",{"text":522,"config":523},"Secrets Management",{"href":524,"dataGaLocation":458,"dataGaName":525},"/gitlab-secrets-manager/","secrets management",{"text":527,"config":528},"Supply Chain Security",{"href":529,"dataGaLocation":458,"dataGaName":530},"/solutions/supply-chain/","supply chain security",{"title":532,"items":533},"Agentic AI & Context",[534,539,544],{"text":535,"config":536},"Duo Agent Platform",{"href":537,"dataGaLocation":458,"dataGaName":538},"/gitlab-duo-agent-platform/","duo agent platform",{"text":540,"config":541},"Orbit Context Graph",{"href":542,"dataGaLocation":458,"dataGaName":543},"/gitlab-orbit/","orbit",{"text":545,"config":546},"Visibility & Measurement",{"href":547,"dataGaLocation":458,"dataGaName":548},"/solutions/visibility-measurement/","visibility and measurement",{"config":550,"title":553,"text":554,"link":555},{"background":551,"textColor":552},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":556,"config":557},"Read the announcement",{"href":558,"dataGaName":559,"dataGaLocation":458},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":561,"left":440,"config":562,"menu":564},"Solutions",{"dataNavLevelOne":563},"solutions",{"type":480,"link":565,"columns":569,"feature":639},{"text":566,"config":567},"View all Solutions",{"href":568,"dataGaName":563,"dataGaLocation":458},"/solutions/",[570,588,606],{"title":571,"items":572},"Outcomes",[573,578,583],{"text":574,"config":575},"DevOps Modernization",{"href":576,"dataGaLocation":458,"dataGaName":577},"/assessments/devops-modernization-assessment/","devops modernization",{"text":579,"config":580},"Security Modernization",{"href":581,"dataGaLocation":458,"dataGaName":582},"/assessments/security-modernization-assessment/","security modernization",{"text":584,"config":585},"AI Modernization",{"href":586,"dataGaLocation":458,"dataGaName":587},"/assessments/ai-modernization-assessment/","ai modernization",{"title":589,"items":590},"By size",[591,596,601],{"text":592,"config":593},"Enterprise",{"href":594,"dataGaLocation":458,"dataGaName":595},"/enterprise/","enterprise",{"text":597,"config":598},"Small Business",{"href":599,"dataGaLocation":458,"dataGaName":600},"/small-business/","small business",{"text":602,"config":603},"Startups",{"href":604,"dataGaLocation":458,"dataGaName":605},"/solutions/startups/","startups",{"title":607,"items":608},"Industries",[609,614,619,624,629,634],{"text":610,"config":611},"Financial Services",{"href":612,"dataGaLocation":458,"dataGaName":613},"/solutions/finance/","financial services",{"text":615,"config":616},"Public Sector",{"href":617,"dataGaLocation":458,"dataGaName":618},"/solutions/public-sector/","public sector",{"text":620,"config":621},"Telecommunications",{"href":622,"dataGaLocation":458,"dataGaName":623},"/solutions/telecommunications/","telecommunications",{"text":625,"config":626},"Automotive",{"href":627,"dataGaLocation":458,"dataGaName":628},"/solutions/automotive/","automotive",{"text":630,"config":631},"Education",{"href":632,"dataGaLocation":458,"dataGaName":633},"/solutions/education/","education",{"text":635,"config":636},"Aerospace",{"href":637,"dataGaLocation":458,"dataGaName":638},"/solutions/aerospace/","aerospace",{"config":640,"title":641,"text":642,"link":643},{"background":551,"textColor":552},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":644,"config":645},"Explore the standard",{"href":646,"dataGaName":647,"dataGaLocation":458},"/gitlab-security-standard/","gitlab security standard",{"text":649,"config":650},"Pricing",{"href":651,"dataGaName":652,"dataGaLocation":458,"dataNavLevelOne":652},"/pricing/","pricing",{"text":654,"config":655,"menu":657},"Resources",{"dataNavLevelOne":656},"resources",{"type":480,"link":658,"columns":662,"feature":723},{"text":659,"config":660},"View all resources",{"href":661,"dataGaName":656,"dataGaLocation":458},"/resources/",[663,695],{"title":664,"items":665},"Discover",[666,671,676,681,686,690],{"text":667,"config":668},"Docs",{"href":669,"dataGaName":670,"dataGaLocation":458},"https://docs.gitlab.com/","docs",{"text":672,"config":673},"University",{"href":674,"dataGaName":675,"dataGaLocation":458},"https://university.gitlab.com/","university",{"text":677,"config":678},"Demo Series",{"href":679,"dataGaName":680,"dataGaLocation":458},"/gitlab-technical-demo-series/","demo series",{"text":682,"config":683},"Demo Hub",{"href":684,"dataGaName":685,"dataGaLocation":458},"/demo-hub/","demo hub",{"text":687,"config":688},"Services",{"href":689,"dataGaName":60,"dataGaLocation":458},"/services/",{"text":691,"config":692},"Well Architected",{"href":693,"dataGaName":694,"dataGaLocation":458},"/resources/well-architected/","well architected",{"title":696,"items":697},"Connect",[698,703,708,713,718],{"text":699,"config":700},"Blog",{"href":701,"dataGaName":702,"dataGaLocation":458},"/blog/","blog",{"text":704,"config":705},"Community",{"href":706,"dataGaName":707,"dataGaLocation":458},"/community/","community",{"text":709,"config":710},"Customers",{"href":711,"dataGaName":712,"dataGaLocation":458},"/customers/","customers",{"text":714,"config":715},"Partners",{"href":716,"dataGaName":717,"dataGaLocation":458},"/partners/","partners",{"text":719,"config":720},"Events",{"href":721,"dataGaName":722,"dataGaLocation":458},"/events/","events",{"config":724,"title":725,"text":726,"link":727},{"background":551,"textColor":552},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":728,"config":729},"Read the latest",{"href":730,"dataGaName":731,"dataGaLocation":458},"/whats-new/","whats new",{"text":733,"config":734,"menu":736},"Company",{"dataNavLevelOne":735},"company",{"type":480,"columns":737},[738],{"items":739},[740,745,751,756,761,766,771,776,781],{"text":741,"config":742},"About",{"href":743,"dataGaName":744,"dataGaLocation":458},"/company/","about",{"text":746,"config":747,"footerGa":750},"Jobs",{"href":748,"dataGaName":749,"dataGaLocation":458},"/jobs/","jobs",{"dataGaName":749},{"text":752,"config":753},"Press",{"href":754,"dataGaName":755,"dataGaLocation":458},"/press/","press",{"text":757,"config":758},"Handbook",{"href":759,"dataGaName":760,"dataGaLocation":458},"https://handbook.gitlab.com/","handbook",{"text":762,"config":763},"Leadership",{"href":764,"dataGaName":765,"dataGaLocation":458},"/company/team/e-group/","leadership",{"text":767,"config":768},"Investor relations",{"href":769,"dataGaName":770,"dataGaLocation":458},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":772,"config":773},"Trust Center",{"href":774,"dataGaName":775,"dataGaLocation":458},"/security/","trust center",{"text":777,"config":778},"AI Transparency Center",{"href":779,"dataGaName":780,"dataGaLocation":458},"/ai-transparency-center/","ai transparency center",{"text":782,"config":783},"Newsletter",{"href":784,"dataGaName":785,"dataGaLocation":458},"/company/contact/#contact-forms","newsletter",{"text":787,"config":788,"menu":789},"Contact us",{"dataNavLevelOne":735},{"type":480,"columns":790},[791],{"items":792},[793,798,803],{"text":794,"config":795},"Talk to sales",{"href":796,"dataGaName":797,"dataGaLocation":458},"/sales/","talk to sales",{"text":799,"config":800},"Support portal",{"href":801,"dataGaName":802,"dataGaLocation":458},"https://support.gitlab.com/hc/en-us","support portal",{"text":804,"config":805},"Customer portal",{"href":806,"dataGaName":807,"dataGaLocation":458},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":809,"login":810,"suggestions":817},"Close",{"text":811,"link":812},"To search repositories and projects, login to",{"text":813,"config":814},"gitlab.com",{"href":472,"dataGaName":815,"dataGaLocation":816},"search login","search",{"text":818,"default":819},"Suggestions",[820,823,826,828,832,836],{"text":821,"config":822},"GitLab Duo Agent Platform",{"href":537,"dataGaName":821,"dataGaLocation":816},{"text":824,"config":825},"Code Suggestions (AI)",{"href":537,"dataGaName":824,"dataGaLocation":816},{"text":449,"config":827},{"href":491,"dataGaName":449,"dataGaLocation":816},{"text":829,"config":830},"GitLab on AWS",{"href":831,"dataGaName":829,"dataGaLocation":816},"/partners/technology-partners/aws/",{"text":833,"config":834},"GitLab on Google Cloud",{"href":835,"dataGaName":833,"dataGaLocation":816},"/partners/technology-partners/google-cloud-platform/",{"text":837,"config":838},"Why GitLab?",{"href":839,"dataGaName":837,"dataGaLocation":816},"/why-gitlab/",{"freeTrial":841,"mobileIcon":846,"desktopIcon":851,"secondaryButton":854},{"text":842,"config":843},"Start free trial",{"href":844,"dataGaName":463,"dataGaLocation":845},"https://gitlab.com/-/trials/new/","nav",{"altText":847,"config":848},"Gitlab Icon",{"src":849,"dataGaName":850,"dataGaLocation":845},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":847,"config":852},{"src":853,"dataGaName":850,"dataGaLocation":845},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":855,"config":856},"Get Started",{"href":857,"dataGaName":858,"dataGaLocation":845},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":860,"mobileIcon":864,"desktopIcon":866},{"text":861,"config":862},"Learn more about GitLab Duo",{"href":537,"dataGaName":863,"dataGaLocation":845},"gitlab duo",{"altText":847,"config":865},{"src":849,"dataGaName":850,"dataGaLocation":845},{"altText":847,"config":867},{"src":853,"dataGaName":850,"dataGaLocation":845},{"button":869,"mobileIcon":874,"desktopIcon":876},{"text":870,"config":871},"/switch",{"href":872,"dataGaName":873,"dataGaLocation":845},"#contact","switch",{"altText":847,"config":875},{"src":849,"dataGaName":850,"dataGaLocation":845},{"altText":847,"config":877},{"src":878,"dataGaName":850,"dataGaLocation":845},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":880,"mobileIcon":885,"desktopIcon":887},{"text":881,"config":882},"Back to pricing",{"href":651,"dataGaName":883,"dataGaLocation":845,"icon":884},"back to pricing","GoBack",{"altText":847,"config":886},{"src":849,"dataGaName":850,"dataGaLocation":845},{"altText":847,"config":888},{"src":853,"dataGaName":850,"dataGaLocation":845},{"title":890,"button":891,"config":895},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":556,"config":892},{"href":558,"dataGaName":893,"dataGaLocation":894},"orbit-ga-banner","global-banner",{"layout":896,"disabled":428},"release",{"data":898},{"text":899,"config":900,"items":905,"minimal":1132},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":901,"facebook":902,"youtube":903,"linkedin":904},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[906,954,1012,1059,1100],{"title":649,"links":907,"subMenu":923},[908,913,918],{"text":909,"config":910},"View plans",{"href":651,"dataGaName":911,"dataGaLocation":912},"view plans","footer",{"text":914,"config":915},"Why Premium?",{"href":916,"dataGaName":917,"dataGaLocation":912},"/pricing/premium/","why premium",{"text":919,"config":920},"Why Ultimate?",{"href":921,"dataGaName":922,"dataGaLocation":912},"/pricing/ultimate/","why ultimate",[924],{"title":925,"links":926},"Contact Us",[927,930,932,934,939,944,949],{"text":928,"config":929},"Contact sales",{"href":796,"dataGaName":468,"dataGaLocation":912},{"text":799,"config":931},{"href":801,"dataGaName":802,"dataGaLocation":912},{"text":804,"config":933},{"href":806,"dataGaName":807,"dataGaLocation":912},{"text":935,"config":936},"Status",{"href":937,"dataGaName":938,"dataGaLocation":912},"https://status.gitlab.com/","status",{"text":940,"config":941},"Terms of use",{"href":942,"dataGaName":943,"dataGaLocation":912},"/terms/","terms of use",{"text":945,"config":946},"Privacy statement",{"href":947,"dataGaName":948,"dataGaLocation":912},"/privacy/","privacy statement",{"text":950,"config":951},"Cookie preferences",{"dataGaName":952,"dataGaLocation":912,"id":953,"isOneTrustButton":440},"cookie preferences","ot-sdk-btn",{"title":476,"links":955,"subMenu":971},[956,959,961,963,965,967],{"text":957,"config":958},"Explore the platform",{"href":484,"dataGaName":478,"dataGaLocation":912},{"text":535,"config":960},{"href":537,"dataGaName":538,"dataGaLocation":912},{"text":449,"config":962},{"href":491,"dataGaName":492,"dataGaLocation":912},{"text":540,"config":964},{"href":542,"dataGaName":543,"dataGaLocation":912},{"text":522,"config":966},{"href":524,"dataGaName":525,"dataGaLocation":912},{"text":968,"config":969},"Why GitLab",{"href":839,"dataGaName":970,"dataGaLocation":912},"why gitlab",[972],{"title":973,"links":974},"Topics",[975,978,983,987,992,997,1002,1007],{"text":449,"config":976},{"href":32,"dataGaName":977,"dataGaLocation":912},"cicd",{"text":979,"config":980},"GitOps",{"href":981,"dataGaName":982,"dataGaLocation":912},"/topics/gitops/","gitops",{"text":487,"config":984},{"href":985,"dataGaName":986,"dataGaLocation":912},"/topics/devops/","devops",{"text":988,"config":989},"Version Control",{"href":990,"dataGaName":991,"dataGaLocation":912},"/topics/version-control/","version control",{"text":993,"config":994},"DevSecOps",{"href":995,"dataGaName":996,"dataGaLocation":912},"/topics/devsecops/","devsecops",{"text":998,"config":999},"Cloud Native",{"href":1000,"dataGaName":1001,"dataGaLocation":912},"/topics/cloud-native/","cloud native",{"text":1003,"config":1004},"AI for Coding",{"href":1005,"dataGaName":1006,"dataGaLocation":912},"/topics/devops/ai-for-coding/","ai for coding",{"text":1008,"config":1009},"Agentic AI",{"href":1010,"dataGaName":1011,"dataGaLocation":912},"/topics/agentic-ai/","agentic ai",{"title":561,"links":1013},[1014,1017,1020,1023,1026,1029,1031,1033,1035,1037,1039,1042,1044,1047,1051,1055],{"text":1015,"config":1016},"DevOps modernization",{"href":576,"dataGaName":577,"dataGaLocation":912},{"text":1018,"config":1019},"Security modernization",{"href":581,"dataGaName":582,"dataGaLocation":912},{"text":1021,"config":1022},"AI modernization",{"href":586,"dataGaName":587,"dataGaLocation":912},{"text":1024,"config":1025},"Financial services",{"href":612,"dataGaName":613,"dataGaLocation":912},{"text":1027,"config":1028},"Public sector",{"href":617,"dataGaName":618,"dataGaLocation":912},{"text":620,"config":1030},{"href":622,"dataGaName":623,"dataGaLocation":912},{"text":625,"config":1032},{"href":627,"dataGaName":628,"dataGaLocation":912},{"text":630,"config":1034},{"href":632,"dataGaName":633,"dataGaLocation":912},{"text":635,"config":1036},{"href":637,"dataGaName":638,"dataGaLocation":912},{"text":592,"config":1038},{"href":594,"dataGaName":595,"dataGaLocation":912},{"text":1040,"config":1041},"Small business",{"href":599,"dataGaName":600,"dataGaLocation":912},{"text":602,"config":1043},{"href":604,"dataGaName":605,"dataGaLocation":912},{"text":979,"config":1045},{"href":1046,"dataGaName":982,"dataGaLocation":912},"/solutions/gitops/",{"text":1048,"config":1049},"Software composition analysis",{"href":529,"dataGaName":1050,"dataGaLocation":912},"software composition analysis",{"text":1052,"config":1053},"Value stream management",{"href":547,"dataGaName":1054,"dataGaLocation":912},"value stream management",{"text":1056,"config":1057},"All solutions",{"href":568,"dataGaName":1058,"dataGaLocation":912},"all solutions",{"title":654,"links":1060},[1061,1066,1071,1073,1075,1077,1079,1081,1083,1085,1087,1089,1091,1093,1096],{"text":1062,"config":1063},"Install",{"href":1064,"dataGaName":1065,"dataGaLocation":912},"/install/","install",{"text":1067,"config":1068},"Quick start guides",{"href":1069,"dataGaName":1070,"dataGaLocation":912},"/get-started/","quick setup checklists",{"text":667,"config":1072},{"href":669,"dataGaName":670,"dataGaLocation":912},{"text":672,"config":1074},{"href":674,"dataGaName":675,"dataGaLocation":912},{"text":677,"config":1076},{"href":679,"dataGaName":680,"dataGaLocation":912},{"text":682,"config":1078},{"href":684,"dataGaName":685,"dataGaLocation":912},{"text":687,"config":1080},{"href":689,"dataGaName":60,"dataGaLocation":912},{"text":699,"config":1082},{"href":701,"dataGaName":702,"dataGaLocation":912},{"text":704,"config":1084},{"href":706,"dataGaName":707,"dataGaLocation":912},{"text":709,"config":1086},{"href":711,"dataGaName":712,"dataGaLocation":912},{"text":714,"config":1088},{"href":716,"dataGaName":717,"dataGaLocation":912},{"text":719,"config":1090},{"href":721,"dataGaName":722,"dataGaLocation":912},{"text":782,"config":1092},{"href":784,"dataGaName":785,"dataGaLocation":912},{"text":1094,"config":1095},"What's new",{"href":730,"dataGaName":731,"dataGaLocation":912},{"text":1097,"config":1098},"All resources",{"href":661,"dataGaName":1099,"dataGaLocation":912},"all resources",{"title":733,"links":1101},[1102,1104,1106,1108,1110,1112,1114,1116,1118,1122,1127],{"text":741,"config":1103},{"href":743,"dataGaName":735,"dataGaLocation":912},{"text":746,"config":1105},{"href":748,"dataGaName":749,"dataGaLocation":912},{"text":752,"config":1107},{"href":754,"dataGaName":755,"dataGaLocation":912},{"text":757,"config":1109},{"href":759,"dataGaName":760,"dataGaLocation":912},{"text":762,"config":1111},{"href":764,"dataGaName":765,"dataGaLocation":912},{"text":767,"config":1113},{"href":769,"dataGaName":770,"dataGaLocation":912},{"text":772,"config":1115},{"href":774,"dataGaName":775,"dataGaLocation":912},{"text":777,"config":1117},{"href":779,"dataGaName":780,"dataGaLocation":912},{"text":1119,"config":1120},"Sustainability",{"href":1121,"dataGaName":1119,"dataGaLocation":912},"/sustainability/",{"text":1123,"config":1124},"Diversity, inclusion and belonging (DIB)",{"href":1125,"dataGaName":1126,"dataGaLocation":912},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1128,"config":1129},"Modern Slavery Transparency Statement",{"href":1130,"dataGaName":1131,"dataGaLocation":912},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1133},[1134,1137,1140],{"text":1135,"config":1136},"Terms",{"href":942,"dataGaName":943,"dataGaLocation":912},{"text":1138,"config":1139},"Cookies",{"dataGaName":952,"dataGaLocation":912,"id":953,"isOneTrustButton":440},{"text":1141,"config":1142},"Privacy",{"href":947,"dataGaName":948,"dataGaLocation":912},[1144],{"id":1145,"title":7,"body":427,"config":1146,"content":1148,"description":427,"extension":1152,"meta":1153,"navigation":440,"path":1154,"seo":1155,"stem":1156,"__hash__":1157},"blogAuthors/en-us/blog/authors/rob-ribeiro.yml",{"template":1147},"BlogAuthor",{"name":7,"config":1149},{"headshot":1150,"ctfId":1151},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659488/Blog/Author%20Headshots/gitlab-logo-extra-whitespace.png","Rob-Ribeiro","yml",{},"/en-us/blog/authors/rob-ribeiro",{},"en-us/blog/authors/rob-ribeiro","rjQ2ysDJP8c1YT6lp5Q92MWb_KgUcH1rL107w_Ow3Iw",[1159,1167,1175],{"title":1160,"description":1161,"heroImage":1162,"category":423,"date":1163,"authors":1164,"slug":1166,"externalUrl":427},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[1165],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1168,"description":1169,"heroImage":1170,"category":423,"date":1171,"authors":1172,"slug":1174,"externalUrl":427},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[1173],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1176,"description":1177,"heroImage":1178,"category":423,"date":1179,"authors":1180,"slug":1182,"externalUrl":427},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[1181],"Isa Huerga","co-create-h1-2026",{"header":1184,"text":1185,"button":1189,"disclaimer":1192},"Start your free\n\n30-day GitLab trial\n",[1186,1187,1188],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":460,"config":1190},{"href":1191,"dataGaName":463,"dataGaLocation":702},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1194,"blurb":1195,"button":1196,"secondaryButton":1201},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1197,"config":1198},"Get your free trial",{"href":1199,"dataGaName":463,"dataGaLocation":1200},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":928,"config":1202},{"href":796,"dataGaName":468,"dataGaLocation":1200},1794911789935]