[{"data":1,"prerenderedAt":1689},["ShallowReactive",2],{"/blog/tutorial-how-to-set-up-your-first-gitlab-ci-cd-component":3,"navigation-en-us":927,"banner-en-us":1364,"footer-en-us":1372,"blog-post-authors-en-us-Sophia Manicor|Noah Ing":1618,"blog-related-posts-en-us-tutorial-how-to-set-up-your-first-gitlab-ci-cd-component":1644,"blog-share-wrapper-en-us":1669,"next-steps-en-us":1679},{"id":4,"title":5,"authors":6,"body":9,"category":905,"date":906,"description":907,"extension":908,"externalUrl":909,"faq":909,"featured":116,"heroImage":910,"hidePromo":911,"meta":912,"navigation":116,"path":913,"seo":914,"slug":918,"stem":919,"tags":920,"template":925,"updatedDate":909,"__hash__":926},"blogPosts/en-us/blog/tutorial-how-to-set-up-your-first-gitlab-ci-cd-component.md","Tutorial: How to set up your first GitLab CI/CD component",[7,8],"Sophia Manicor","Noah Ing",{"type":10,"value":11,"toc":897},"minimark",[12,23,32,37,50,55,67,88,279,282,353,356,381,384,388,399,413,416,517,520,523,526,583,598,606,609,612,616,626,633,702,714,717,724,731,734,738,756,762,765,771,782,786,809,813,818,821,826,829,834,841,846,849,854,857,862,868,873,882,887,893],[13,14,15,16,22],"p",{},"Do you use Python scripts in your GitLab CI pipelines? Do you want to create pipelines at scale? This tutorial shows how to set up your first ",[17,18,21],"a",{"href":19,"rel":20},"https://docs.gitlab.com/ci/components/",[],"GitLab CI/CD component"," to deploy Python scripts.",[13,24,25,26,31],{},"A ",[17,27,30],{"href":28,"rel":29},"https://about.gitlab.com/blog/introducing-ci-components/",[],"CI/CD component is a reusable single pipeline configuration unit",". Use components to create a small part of a larger pipeline, or even to compose a complete pipeline configuration.",[33,34,36],"h1",{"id":35},"prerequisites","Prerequisites",[38,39,40,44,47],"ul",{},[41,42,43],"li",{},"Basic Python knowledge",[41,45,46],{},"Working knowledge of GitLab CI",[41,48,49],{},"8 minutes",[51,52,54],"h2",{"id":53},"python-script","Python script",[38,56,57],{},[41,58,59],{},[60,61,62],"strong",{},[17,63,66],{"href":64,"rel":65},"https://gitlab.com/demos/templates/gitlab-python-cicd-component/-/blob/main/src/script.py?ref_type=heads",[],"The demo Python script",[13,68,69,70,75,76,81,82,87],{},"This Python script utilizes a library called ",[17,71,74],{"href":72,"rel":73},"https://docs.python.org/3/library/argparse.html",[],"ArgParse"," . ArgParse allows you to pass variables to script through the command line. This script takes in three arguments:\n",[17,77,80],{"href":78,"rel":79},"https://docs.gitlab.com/ci/yaml/#image",[],"Python_container_image",": This is the Python container image you wish to use.\n",[17,83,86],{"href":84,"rel":85},"https://docs.gitlab.com/ci/yaml/#stage",[],"Stage",": This is the GitLab CI stage in which you job will run in.\nName: This is your name.",[89,90,95],"pre",{"className":91,"code":92,"language":93,"meta":94,"style":94},"language-python shiki shiki-themes github-light","import argparse\n\nparser = argparse.ArgumentParser(description='Python CICD Component Boilerplate')\nparser.add_argument('python_container_image', type=str, help='python:3.10-slim')\nparser.add_argument('stage', type=str, help='Build')\nparser.add_argument('persons_name', type=str, help='Noah')\nargs = parser.parse_args()\n\npython_container_image = args.python_container_image\nstage = args.stage\npersons_name = args.persons_name\n","python","",[96,97,98,111,118,143,176,203,230,241,246,257,268],"code",{"__ignoreMap":94},[99,100,103,107],"span",{"class":101,"line":102},"line",1,[99,104,106],{"class":105},"sD7c4","import",[99,108,110],{"class":109},"sgsFI"," argparse\n",[99,112,114],{"class":101,"line":113},2,[99,115,117],{"emptyLinePlaceholder":116},true,"\n",[99,119,121,124,127,130,134,136,140],{"class":101,"line":120},3,[99,122,123],{"class":109},"parser ",[99,125,126],{"class":105},"=",[99,128,129],{"class":109}," argparse.ArgumentParser(",[99,131,133],{"class":132},"sqxcx","description",[99,135,126],{"class":105},[99,137,139],{"class":138},"sYBdl","'Python CICD Component Boilerplate'",[99,141,142],{"class":109},")\n",[99,144,146,149,152,155,158,160,164,166,169,171,174],{"class":101,"line":145},4,[99,147,148],{"class":109},"parser.add_argument(",[99,150,151],{"class":138},"'python_container_image'",[99,153,154],{"class":109},", ",[99,156,157],{"class":132},"type",[99,159,126],{"class":105},[99,161,163],{"class":162},"sYu0t","str",[99,165,154],{"class":109},[99,167,168],{"class":132},"help",[99,170,126],{"class":105},[99,172,173],{"class":138},"'python:3.10-slim'",[99,175,142],{"class":109},[99,177,179,181,184,186,188,190,192,194,196,198,201],{"class":101,"line":178},5,[99,180,148],{"class":109},[99,182,183],{"class":138},"'stage'",[99,185,154],{"class":109},[99,187,157],{"class":132},[99,189,126],{"class":105},[99,191,163],{"class":162},[99,193,154],{"class":109},[99,195,168],{"class":132},[99,197,126],{"class":105},[99,199,200],{"class":138},"'Build'",[99,202,142],{"class":109},[99,204,206,208,211,213,215,217,219,221,223,225,228],{"class":101,"line":205},6,[99,207,148],{"class":109},[99,209,210],{"class":138},"'persons_name'",[99,212,154],{"class":109},[99,214,157],{"class":132},[99,216,126],{"class":105},[99,218,163],{"class":162},[99,220,154],{"class":109},[99,222,168],{"class":132},[99,224,126],{"class":105},[99,226,227],{"class":138},"'Noah'",[99,229,142],{"class":109},[99,231,233,236,238],{"class":101,"line":232},7,[99,234,235],{"class":109},"args ",[99,237,126],{"class":105},[99,239,240],{"class":109}," parser.parse_args()\n",[99,242,244],{"class":101,"line":243},8,[99,245,117],{"emptyLinePlaceholder":116},[99,247,249,252,254],{"class":101,"line":248},9,[99,250,251],{"class":109},"python_container_image ",[99,253,126],{"class":105},[99,255,256],{"class":109}," args.python_container_image\n",[99,258,260,263,265],{"class":101,"line":259},10,[99,261,262],{"class":109},"stage ",[99,264,126],{"class":105},[99,266,267],{"class":109}," args.stage\n",[99,269,271,274,276],{"class":101,"line":270},11,[99,272,273],{"class":109},"persons_name ",[99,275,126],{"class":105},[99,277,278],{"class":109}," args.persons_name\n",[13,280,281],{},"This will take in these three variables and print out simple statements:",[89,283,285],{"className":91,"code":284,"language":93,"meta":94,"style":94},"print(\"You have chosen \" + python_container_image + \" as the container image\")\nprint(\"You have chosen \" + stage + \" as the stage to run this job\")\nprint(\"Thank you \" + persons_name + \"! you are succesfully using GitLab CI with a Python script.\")\n",[96,286,287,312,332],{"__ignoreMap":94},[99,288,289,292,295,298,301,304,307,310],{"class":101,"line":102},[99,290,291],{"class":162},"print",[99,293,294],{"class":109},"(",[99,296,297],{"class":138},"\"You have chosen \"",[99,299,300],{"class":105}," +",[99,302,303],{"class":109}," python_container_image ",[99,305,306],{"class":105},"+",[99,308,309],{"class":138}," \" as the container image\"",[99,311,142],{"class":109},[99,313,314,316,318,320,322,325,327,330],{"class":101,"line":113},[99,315,291],{"class":162},[99,317,294],{"class":109},[99,319,297],{"class":138},[99,321,300],{"class":105},[99,323,324],{"class":109}," stage ",[99,326,306],{"class":105},[99,328,329],{"class":138}," \" as the stage to run this job\"",[99,331,142],{"class":109},[99,333,334,336,338,341,343,346,348,351],{"class":101,"line":120},[99,335,291],{"class":162},[99,337,294],{"class":109},[99,339,340],{"class":138},"\"Thank you \"",[99,342,300],{"class":105},[99,344,345],{"class":109}," persons_name ",[99,347,306],{"class":105},[99,349,350],{"class":138}," \"! you are succesfully using GitLab CI with a Python script.\"",[99,352,142],{"class":109},[13,354,355],{},"To test this script locally, you can call on the script by utilizing the following command:",[89,357,361],{"className":358,"code":359,"language":360,"meta":94,"style":94},"language-bash shiki shiki-themes github-light","python3 src/script.py python_container_image stage name\n","bash",[96,362,363],{"__ignoreMap":94},[99,364,365,369,372,375,378],{"class":101,"line":102},[99,366,368],{"class":367},"s7eDp","python3",[99,370,371],{"class":138}," src/script.py",[99,373,374],{"class":138}," python_container_image",[99,376,377],{"class":138}," stage",[99,379,380],{"class":138}," name\n",[13,382,383],{},"Modify this script accordingly if you’d like to add in your own arguments!",[51,385,387],{"id":386},"template","Template",[38,389,390],{},[41,391,392],{},[60,393,394],{},[17,395,398],{"href":396,"rel":397},"https://gitlab.com/demos/templates/gitlab-python-cicd-component/-/blob/main/templates/template.yml?ref_type=heads",[],"Demo of template",[13,400,401,404,405,408,409,412],{},[60,402,403],{},"Note:"," As long as the ",[96,406,407],{},"gitlab-ci.yml"," is placed in the templates/directory, the CI/CD component will know to pick it up. We named our template ",[96,410,411],{},"templates.yml",", but any name would work for this YAML file.",[13,414,415],{},"Now, getting into the fun part of CI/CD components, inputs!  Inputs allow you to pass through variables into your pipeline.",[89,417,421],{"className":418,"code":419,"language":420,"meta":94,"style":94},"language-yml shiki shiki-themes github-light","spec:\n  inputs:\n    python_container_image:\n      default: python:3.10-slim\n      description: \"Define any python container image\"\n    stage:\n      default: build\n      description: \"Define the stage this job will run in\"\n    persons_name:\n      default: Noah\n      description: \"Put your name here\"\n\n","yml",[96,422,423,432,439,446,457,467,474,483,492,499,508],{"__ignoreMap":94},[99,424,425,429],{"class":101,"line":102},[99,426,428],{"class":427},"shJU0","spec",[99,430,431],{"class":109},":\n",[99,433,434,437],{"class":101,"line":113},[99,435,436],{"class":427},"  inputs",[99,438,431],{"class":109},[99,440,441,444],{"class":101,"line":120},[99,442,443],{"class":427},"    python_container_image",[99,445,431],{"class":109},[99,447,448,451,454],{"class":101,"line":145},[99,449,450],{"class":427},"      default",[99,452,453],{"class":109},": ",[99,455,456],{"class":138},"python:3.10-slim\n",[99,458,459,462,464],{"class":101,"line":178},[99,460,461],{"class":427},"      description",[99,463,453],{"class":109},[99,465,466],{"class":138},"\"Define any python container image\"\n",[99,468,469,472],{"class":101,"line":205},[99,470,471],{"class":427},"    stage",[99,473,431],{"class":109},[99,475,476,478,480],{"class":101,"line":232},[99,477,450],{"class":427},[99,479,453],{"class":109},[99,481,482],{"class":138},"build\n",[99,484,485,487,489],{"class":101,"line":243},[99,486,461],{"class":427},[99,488,453],{"class":109},[99,490,491],{"class":138},"\"Define the stage this job will run in\"\n",[99,493,494,497],{"class":101,"line":248},[99,495,496],{"class":427},"    persons_name",[99,498,431],{"class":109},[99,500,501,503,505],{"class":101,"line":259},[99,502,450],{"class":427},[99,504,453],{"class":109},[99,506,507],{"class":138},"Noah\n",[99,509,510,512,514],{"class":101,"line":270},[99,511,461],{"class":427},[99,513,453],{"class":109},[99,515,516],{"class":138},"\"Put your name here\"\n",[13,518,519],{},"Here we have defined the three inputs that are our arguments in our Python script. You can see for each input we have added in a default value – this will be what the input is set to if not overridden. If we took out this default keyword the input would become mandatory when we use our component. As it is written now, adding in these inputs when we use our component is optional due to our default values.",[13,521,522],{},"We can also set descriptions to ensure that other developers can understand what to input when they use our component. Descriptions are optional but they provide self documentation within the code itself, which is always nice.",[13,524,525],{},"After we set up our inputs, let’s write the rest of our component:",[89,527,529],{"className":418,"code":528,"language":420,"meta":94,"style":94},"component:\n  image: $[[ inputs.python_container_image ]]\n  stage: $[[ inputs.stage ]]\n  before_script:\n    - pip3 install -r src/requirements.txt\n  script: python3 src/script.py $[[ inputs.python_container_image ]] $[[ inputs.stage ]] $[[ inputs.persons_name ]]\n\n",[96,530,531,538,548,558,565,573],{"__ignoreMap":94},[99,532,533,536],{"class":101,"line":102},[99,534,535],{"class":427},"component",[99,537,431],{"class":109},[99,539,540,543,545],{"class":101,"line":113},[99,541,542],{"class":427},"  image",[99,544,453],{"class":109},[99,546,547],{"class":138},"$[[ inputs.python_container_image ]]\n",[99,549,550,553,555],{"class":101,"line":120},[99,551,552],{"class":427},"  stage",[99,554,453],{"class":109},[99,556,557],{"class":138},"$[[ inputs.stage ]]\n",[99,559,560,563],{"class":101,"line":145},[99,561,562],{"class":427},"  before_script",[99,564,431],{"class":109},[99,566,567,570],{"class":101,"line":178},[99,568,569],{"class":109},"    - ",[99,571,572],{"class":138},"pip3 install -r src/requirements.txt\n",[99,574,575,578,580],{"class":101,"line":205},[99,576,577],{"class":427},"  script",[99,579,453],{"class":109},[99,581,582],{"class":138},"python3 src/script.py $[[ inputs.python_container_image ]] $[[ inputs.stage ]] $[[ inputs.persons_name ]]\n",[13,584,585,586,589,590,593,594,597],{},"To use inputs in our component, we need to use the syntax ",[96,587,588],{},"$[[ inputs.$VARIABLE ]]",". In the above code, you can see that we use inputs to define our image and stage with  ",[96,591,592],{},"$[[ inputs.python_container_image ]]"," and   ",[96,595,596],{},"$[[ inputs.stage ]] ",".",[89,599,604],{"className":600,"code":602,"language":603,"meta":94},[601],"language-text","script: python3 src/script.py $[[ inputs.python_container_image ]] $[[ inputs.stage ]] $[[ inputs.persons_name ]]\n","text",[96,605,602],{"__ignoreMap":94},[13,607,608],{},"Diving into the script section, you can see we call upon our Python script.. We are able to pass our inputs in with the help of the ArgParse.",[13,610,611],{},"Now that you have reviewed how the Python script works and the template has been set up, it is time to use the component!",[51,613,615],{"id":614},"using-the-component","Using the component",[38,617,618],{},[41,619,620,621],{},"**",[17,622,625],{"href":623,"rel":624},"https://gitlab.com/demos/templates/gitlab-python-cicd-component/-/blob/main/.gitlab-ci.yml?ref_type=heads",[],"A demo of including the component",[13,627,628,629,632],{},"In order to utilize the CI/CD component we just created, we need to include it in the ",[96,630,631],{},".gitlab-ci.yml"," file that is in the root of our directory.",[89,634,638],{"className":635,"code":636,"language":637,"meta":94,"style":94},"language-yaml shiki shiki-themes github-light","include:\n  # include the component located in the current project from the current SHA\n  - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/template@$CI_COMMIT_SHA\n    inputs:\n      python_container_image: python:3.11-slim\n      stage: test\n      persons_name: Tanuki\n\n","yaml",[96,639,640,647,653,665,672,682,692],{"__ignoreMap":94},[99,641,642,645],{"class":101,"line":102},[99,643,644],{"class":427},"include",[99,646,431],{"class":109},[99,648,649],{"class":101,"line":113},[99,650,652],{"class":651},"sAwPA","  # include the component located in the current project from the current SHA\n",[99,654,655,658,660,662],{"class":101,"line":120},[99,656,657],{"class":109},"  - ",[99,659,535],{"class":427},[99,661,453],{"class":109},[99,663,664],{"class":138},"$CI_SERVER_FQDN/$CI_PROJECT_PATH/template@$CI_COMMIT_SHA\n",[99,666,667,670],{"class":101,"line":145},[99,668,669],{"class":427},"    inputs",[99,671,431],{"class":109},[99,673,674,677,679],{"class":101,"line":178},[99,675,676],{"class":427},"      python_container_image",[99,678,453],{"class":109},[99,680,681],{"class":138},"python:3.11-slim\n",[99,683,684,687,689],{"class":101,"line":205},[99,685,686],{"class":427},"      stage",[99,688,453],{"class":109},[99,690,691],{"class":138},"test\n",[99,693,694,697,699],{"class":101,"line":232},[99,695,696],{"class":427},"      persons_name",[99,698,453],{"class":109},[99,700,701],{"class":138},"Tanuki\n",[13,703,704,705,708,709,597],{},"One way to include it is to call upon it locally in the current project from the current ",[96,706,707],{},"Commit SHA",". You can find other ways to ",[17,710,713],{"href":711,"rel":712},"https://docs.gitlab.com/ci/components/#use-a-component",[],"reference a component in our documentation",[13,715,716],{},"To override the defaults, we have passed in other inputs so we get the correct image, stage, and name for our job.",[13,718,719,720,723],{},"Try and change the ",[96,721,722],{},"persons_names"," to your own and watch the pipeline run!",[13,725,726],{},[727,728],"img",{"alt":729,"src":730},"ci/cd component tutorial - pipeline running","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750098419/Blog/Content%20Images/Blog/Content%20Images/image1_aHR0cHM6_1750098418901.png",[13,732,733],{},"Voila! You have learned how to set up a basic C/ICD component utilizing a Python ArgParse script!",[51,735,737],{"id":736},"whats-next","What's next?",[13,739,740,741,746,747,752,753,597],{},"In the Python script, there is a commented out GitLab Python library and OS library. If you would like to interact with the GitLab API, you can uncomment these and add in a ",[17,742,745],{"href":743,"rel":744},"https://docs.gitlab.com/user/profile/personal_access_tokens/",[],"GitLab personal access token"," to the ",[17,748,751],{"href":749,"rel":750},"https://docs.gitlab.com/ci/variables/",[],"CI/CD variables"," named ",[96,754,755],{},"GLPAT",[89,757,760],{"className":758,"code":759,"language":603,"meta":94},[601],"import gitlab\nimport os\n",[96,761,759],{"__ignoreMap":94},[13,763,764],{},"Afterwards you can then interact with the GitLab API.",[89,766,769],{"className":767,"code":768,"language":603,"meta":94},[601],"glpat = os.environ['GLPAT']\n\ngl = gitlab.Gitlab(private_token=glpat)\n# SELF_HOSTED gl = gitlab.Gitlab(url='https://gitlab.example.com', private_token='xxxxxxxxxxxxxx')\ntry:\n   projects = gl.projects.list(get_all=True)\n   print(projects)\nexcept Exception as error:\n   print(\"Error:\", error)\n\n",[96,770,768],{"__ignoreMap":94},[772,773,774],"blockquote",{},[13,775,776,777,597],{},"Learn more about CI/CD components and how to avoid building pipelines from scratch with the ",[17,778,781],{"href":779,"rel":780},"https://about.gitlab.com/blog/ci-cd-catalog-goes-ga-no-more-building-pipelines-from-scratch/",[],"GitLab CI/CD Catalog",[51,783,785],{"id":784},"read-more","Read more",[38,787,788,795,802],{},[41,789,790],{},[17,791,794],{"href":792,"rel":793},"https://about.gitlab.com/blog/faq-gitlab-ci-cd-catalog/",[],"FAQ: GitLab CI/CD Catalog",[41,796,797],{},[17,798,801],{"href":799,"rel":800},"https://about.gitlab.com/blog/introducing-ci-cd-steps-a-programming-language-for-devsecops-automation/",[],"Introducing CI/CD Steps, a programming language for DevSecOps automation",[41,803,804],{},[17,805,808],{"href":806,"rel":807},"https://about.gitlab.com/blog/a-ci-component-builders-journey/",[],"A CI/CD component builder's journey",[51,810,812],{"id":811},"faq","FAQ",[13,814,815],{},[60,816,817],{},"What is a GitLab CI/CD component?",[13,819,820],{},"A CI/CD component is a reusable single pipeline configuration unit that can be used to create a small part of a larger pipeline or to compose a complete pipeline configuration.",[13,822,823],{},[60,824,825],{},"What do I need before setting up my first CI/CD component?",[13,827,828],{},"You need basic Python knowledge, a working knowledge of GitLab CI, and about 8 minutes to complete the setup.",[13,830,831],{},[60,832,833],{},"Where should the template YAML file be placed in a CI/CD component project?",[13,835,836,837,840],{},"The template YAML file must be placed in the ",[96,838,839],{},"templates/"," directory so the CI/CD component knows to pick it up, and any filename will work for that YAML file.",[13,842,843],{},[60,844,845],{},"What are inputs in a CI/CD component and why are they useful?",[13,847,848],{},"Inputs allow you to pass variables into your pipeline, and each input can have a default value and an optional description to help other developers understand what to provide.",[13,850,851],{},[60,852,853],{},"What happens if I don't provide a default value for an input?",[13,855,856],{},"Without a default value, the input becomes mandatory whenever the component is used, whereas inputs with default values are optional to override.",[13,858,859],{},[60,860,861],{},"How do I reference an input variable inside a component template?",[13,863,864,865,867],{},"Use the syntax ",[96,866,588],{}," to reference any input within your component's YAML configuration.",[13,869,870],{},[60,871,872],{},"How do I include a CI/CD component in my pipeline?",[13,874,875,876,878,879,881],{},"Add an ",[96,877,644],{}," block to the ",[96,880,631],{}," file at the root of your project and reference the component using its path and commit SHA or another supported reference method.",[13,883,884],{},[60,885,886],{},"Can I use a CI/CD component to interact with the GitLab API?",[13,888,889,890,892],{},"Yes, by uncommenting the GitLab Python library in the script and adding a personal access token to your CI/CD variables as ",[96,891,755],{},", you can interact with the GitLab API from within your component.",[894,895,896],"style",{},"html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}",{"title":94,"searchDepth":113,"depth":113,"links":898},[899,900,901,902,903,904],{"id":53,"depth":113,"text":54},{"id":386,"depth":113,"text":387},{"id":614,"depth":113,"text":615},{"id":736,"depth":113,"text":737},{"id":784,"depth":113,"text":785},{"id":811,"depth":113,"text":812},"engineering","2024-11-12","Use Python scripts in your GitLab CI/CD pipelines to improve usability. In this step-by-step guide, you'll learn how to get started building your own CI/CD component.","md",null,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1750098410/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2826%29_3lH4gZFVIGCndksN6Rlg85_1750098409928.png",false,{},"/en-us/blog/tutorial-how-to-set-up-your-first-gitlab-ci-cd-component",{"title":5,"description":907,"ogTitle":5,"ogDescription":907,"noIndex":911,"ogImage":910,"ogUrl":915,"ogSiteName":916,"ogType":917,"canonicalUrls":915},"https://about.gitlab.com/blog/tutorial-how-to-set-up-your-first-gitlab-ci-cd-component","https://about.gitlab.com","article","tutorial-how-to-set-up-your-first-gitlab-ci-cd-component","en-us/blog/tutorial-how-to-set-up-your-first-gitlab-ci-cd-component",[921,922,923,924],"CI/CD","tutorial","DevSecOps","solutions architecture","BlogPost","Sf5iRprf1iArS9tzQHOiZmhT-J1y44CxPu1mSUpu2YA",{"logo":928,"freeTrial":933,"sales":938,"login":943,"items":948,"search":1283,"minimal":1315,"duo":1334,"switchNav":1343,"pricingDeployment":1354},{"config":929},{"href":930,"dataGaName":931,"dataGaLocation":932},"/","gitlab logo","header",{"text":934,"config":935},"Get free trial",{"href":936,"dataGaName":937,"dataGaLocation":932},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":939,"config":940},"Request a demo",{"href":941,"dataGaName":942,"dataGaLocation":932},"/request-a-demo/","sales",{"text":944,"config":945},"Sign in",{"href":946,"dataGaName":947,"dataGaLocation":932},"https://gitlab.com/users/sign_in/","sign in",[949,1034,1122,1127,1207,1261],{"text":950,"left":116,"config":951,"menu":953},"Platform",{"dataNavLevelOne":952},"platform",{"type":954,"link":955,"columns":959,"feature":1023},"lists",{"text":956,"config":957},"Explore the Platform",{"href":958,"dataGaName":952,"dataGaLocation":932},"/platform/",[960,982,1005],{"title":961,"items":962},"DevOps",[963,967,972,977],{"text":921,"config":964},{"href":965,"dataGaLocation":932,"dataGaName":966},"/solutions/continuous-integration/","ci/cd",{"text":968,"config":969},"Source Code Management",{"href":970,"dataGaLocation":932,"dataGaName":971},"/solutions/source-code-management/","source code management",{"text":973,"config":974},"Agile Delivery",{"href":975,"dataGaLocation":932,"dataGaName":976},"/solutions/agile-delivery/","agile delivery",{"text":978,"config":979},"Artifact Management",{"href":980,"dataGaLocation":932,"dataGaName":981},"/artifact-central/","artifact management",{"title":983,"items":984},"Security & Governance",[985,990,995,1000],{"text":986,"config":987},"Application Security Testing",{"href":988,"dataGaLocation":932,"dataGaName":989},"/solutions/application-security-testing/","application security testing",{"text":991,"config":992},"Governance & Compliance",{"href":993,"dataGaLocation":932,"dataGaName":994},"/solutions/software-compliance/","governance and compliance",{"text":996,"config":997},"Secrets Management",{"href":998,"dataGaLocation":932,"dataGaName":999},"/gitlab-secrets-manager/","secrets management",{"text":1001,"config":1002},"Supply Chain Security",{"href":1003,"dataGaLocation":932,"dataGaName":1004},"/solutions/supply-chain/","supply chain security",{"title":1006,"items":1007},"Agentic AI & Context",[1008,1013,1018],{"text":1009,"config":1010},"Duo Agent Platform",{"href":1011,"dataGaLocation":932,"dataGaName":1012},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1014,"config":1015},"Orbit Context Graph",{"href":1016,"dataGaLocation":932,"dataGaName":1017},"/gitlab-orbit/","orbit",{"text":1019,"config":1020},"Visibility & Measurement",{"href":1021,"dataGaLocation":932,"dataGaName":1022},"/solutions/visibility-measurement/","visibility and measurement",{"config":1024,"title":1027,"text":1028,"link":1029},{"background":1025,"textColor":1026},"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":1030,"config":1031},"Read the announcement",{"href":1032,"dataGaName":1033,"dataGaLocation":932},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1035,"left":116,"config":1036,"menu":1038},"Solutions",{"dataNavLevelOne":1037},"solutions",{"type":954,"link":1039,"columns":1043,"feature":1113},{"text":1040,"config":1041},"View all Solutions",{"href":1042,"dataGaName":1037,"dataGaLocation":932},"/solutions/",[1044,1062,1080],{"title":1045,"items":1046},"Outcomes",[1047,1052,1057],{"text":1048,"config":1049},"DevOps Modernization",{"href":1050,"dataGaLocation":932,"dataGaName":1051},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1053,"config":1054},"Security Modernization",{"href":1055,"dataGaLocation":932,"dataGaName":1056},"/assessments/security-modernization-assessment/","security modernization",{"text":1058,"config":1059},"AI Modernization",{"href":1060,"dataGaLocation":932,"dataGaName":1061},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1063,"items":1064},"By size",[1065,1070,1075],{"text":1066,"config":1067},"Enterprise",{"href":1068,"dataGaLocation":932,"dataGaName":1069},"/enterprise/","enterprise",{"text":1071,"config":1072},"Small Business",{"href":1073,"dataGaLocation":932,"dataGaName":1074},"/small-business/","small business",{"text":1076,"config":1077},"Startups",{"href":1078,"dataGaLocation":932,"dataGaName":1079},"/solutions/startups/","startups",{"title":1081,"items":1082},"Industries",[1083,1088,1093,1098,1103,1108],{"text":1084,"config":1085},"Financial Services",{"href":1086,"dataGaLocation":932,"dataGaName":1087},"/solutions/finance/","financial services",{"text":1089,"config":1090},"Public Sector",{"href":1091,"dataGaLocation":932,"dataGaName":1092},"/solutions/public-sector/","public sector",{"text":1094,"config":1095},"Telecommunications",{"href":1096,"dataGaLocation":932,"dataGaName":1097},"/solutions/telecommunications/","telecommunications",{"text":1099,"config":1100},"Automotive",{"href":1101,"dataGaLocation":932,"dataGaName":1102},"/solutions/automotive/","automotive",{"text":1104,"config":1105},"Education",{"href":1106,"dataGaLocation":932,"dataGaName":1107},"/solutions/education/","education",{"text":1109,"config":1110},"Aerospace",{"href":1111,"dataGaLocation":932,"dataGaName":1112},"/solutions/aerospace/","aerospace",{"config":1114,"title":1115,"text":1116,"link":1117},{"background":1025,"textColor":1026},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1118,"config":1119},"Explore the standard",{"href":1120,"dataGaName":1121,"dataGaLocation":932},"/gitlab-security-standard/","gitlab security standard",{"text":1123,"config":1124},"Pricing",{"href":1125,"dataGaName":1126,"dataGaLocation":932,"dataNavLevelOne":1126},"/pricing/","pricing",{"text":1128,"config":1129,"menu":1131},"Resources",{"dataNavLevelOne":1130},"resources",{"type":954,"link":1132,"columns":1136,"feature":1198},{"text":1133,"config":1134},"View all resources",{"href":1135,"dataGaName":1130,"dataGaLocation":932},"/resources/",[1137,1170],{"title":1138,"items":1139},"Discover",[1140,1145,1150,1155,1160,1165],{"text":1141,"config":1142},"Docs",{"href":1143,"dataGaName":1144,"dataGaLocation":932},"https://docs.gitlab.com/","docs",{"text":1146,"config":1147},"University",{"href":1148,"dataGaName":1149,"dataGaLocation":932},"https://university.gitlab.com/","university",{"text":1151,"config":1152},"Demo Series",{"href":1153,"dataGaName":1154,"dataGaLocation":932},"/gitlab-technical-demo-series/","demo series",{"text":1156,"config":1157},"Demo Hub",{"href":1158,"dataGaName":1159,"dataGaLocation":932},"/demo-hub/","demo hub",{"text":1161,"config":1162},"Services",{"href":1163,"dataGaName":1164,"dataGaLocation":932},"/services/","services",{"text":1166,"config":1167},"Well Architected",{"href":1168,"dataGaName":1169,"dataGaLocation":932},"/resources/well-architected/","well architected",{"title":1171,"items":1172},"Connect",[1173,1178,1183,1188,1193],{"text":1174,"config":1175},"Blog",{"href":1176,"dataGaName":1177,"dataGaLocation":932},"/blog/","blog",{"text":1179,"config":1180},"Community",{"href":1181,"dataGaName":1182,"dataGaLocation":932},"/community/","community",{"text":1184,"config":1185},"Customers",{"href":1186,"dataGaName":1187,"dataGaLocation":932},"/customers/","customers",{"text":1189,"config":1190},"Partners",{"href":1191,"dataGaName":1192,"dataGaLocation":932},"/partners/","partners",{"text":1194,"config":1195},"Events",{"href":1196,"dataGaName":1197,"dataGaLocation":932},"/events/","events",{"config":1199,"title":1200,"text":1201,"link":1202},{"background":1025,"textColor":1026},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1203,"config":1204},"Read the latest",{"href":1205,"dataGaName":1206,"dataGaLocation":932},"/whats-new/","whats new",{"text":1208,"config":1209,"menu":1211},"Company",{"dataNavLevelOne":1210},"company",{"type":954,"columns":1212},[1213],{"items":1214},[1215,1220,1226,1231,1236,1241,1246,1251,1256],{"text":1216,"config":1217},"About",{"href":1218,"dataGaName":1219,"dataGaLocation":932},"/company/","about",{"text":1221,"config":1222,"footerGa":1225},"Jobs",{"href":1223,"dataGaName":1224,"dataGaLocation":932},"/jobs/","jobs",{"dataGaName":1224},{"text":1227,"config":1228},"Press",{"href":1229,"dataGaName":1230,"dataGaLocation":932},"/press/","press",{"text":1232,"config":1233},"Handbook",{"href":1234,"dataGaName":1235,"dataGaLocation":932},"https://handbook.gitlab.com/","handbook",{"text":1237,"config":1238},"Leadership",{"href":1239,"dataGaName":1240,"dataGaLocation":932},"/company/team/e-group/","leadership",{"text":1242,"config":1243},"Investor relations",{"href":1244,"dataGaName":1245,"dataGaLocation":932},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1247,"config":1248},"Trust Center",{"href":1249,"dataGaName":1250,"dataGaLocation":932},"/security/","trust center",{"text":1252,"config":1253},"AI Transparency Center",{"href":1254,"dataGaName":1255,"dataGaLocation":932},"/ai-transparency-center/","ai transparency center",{"text":1257,"config":1258},"Newsletter",{"href":1259,"dataGaName":1260,"dataGaLocation":932},"/company/contact/#contact-forms","newsletter",{"text":1262,"config":1263,"menu":1264},"Contact us",{"dataNavLevelOne":1210},{"type":954,"columns":1265},[1266],{"items":1267},[1268,1273,1278],{"text":1269,"config":1270},"Talk to sales",{"href":1271,"dataGaName":1272,"dataGaLocation":932},"/sales/","talk to sales",{"text":1274,"config":1275},"Support portal",{"href":1276,"dataGaName":1277,"dataGaLocation":932},"https://support.gitlab.com/hc/en-us","support portal",{"text":1279,"config":1280},"Customer portal",{"href":1281,"dataGaName":1282,"dataGaLocation":932},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1284,"login":1285,"suggestions":1292},"Close",{"text":1286,"link":1287},"To search repositories and projects, login to",{"text":1288,"config":1289},"gitlab.com",{"href":946,"dataGaName":1290,"dataGaLocation":1291},"search login","search",{"text":1293,"default":1294},"Suggestions",[1295,1298,1301,1303,1307,1311],{"text":1296,"config":1297},"GitLab Duo Agent Platform",{"href":1011,"dataGaName":1296,"dataGaLocation":1291},{"text":1299,"config":1300},"Code Suggestions (AI)",{"href":1011,"dataGaName":1299,"dataGaLocation":1291},{"text":921,"config":1302},{"href":965,"dataGaName":921,"dataGaLocation":1291},{"text":1304,"config":1305},"GitLab on AWS",{"href":1306,"dataGaName":1304,"dataGaLocation":1291},"/partners/technology-partners/aws/",{"text":1308,"config":1309},"GitLab on Google Cloud",{"href":1310,"dataGaName":1308,"dataGaLocation":1291},"/partners/technology-partners/google-cloud-platform/",{"text":1312,"config":1313},"Why GitLab?",{"href":1314,"dataGaName":1312,"dataGaLocation":1291},"/why-gitlab/",{"freeTrial":1316,"mobileIcon":1321,"desktopIcon":1326,"secondaryButton":1329},{"text":1317,"config":1318},"Start free trial",{"href":1319,"dataGaName":937,"dataGaLocation":1320},"https://gitlab.com/-/trials/new/","nav",{"altText":1322,"config":1323},"Gitlab Icon",{"src":1324,"dataGaName":1325,"dataGaLocation":1320},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1322,"config":1327},{"src":1328,"dataGaName":1325,"dataGaLocation":1320},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1330,"config":1331},"Get Started",{"href":1332,"dataGaName":1333,"dataGaLocation":1320},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1335,"mobileIcon":1339,"desktopIcon":1341},{"text":1336,"config":1337},"Learn more about GitLab Duo",{"href":1011,"dataGaName":1338,"dataGaLocation":1320},"gitlab duo",{"altText":1322,"config":1340},{"src":1324,"dataGaName":1325,"dataGaLocation":1320},{"altText":1322,"config":1342},{"src":1328,"dataGaName":1325,"dataGaLocation":1320},{"button":1344,"mobileIcon":1349,"desktopIcon":1351},{"text":1345,"config":1346},"/switch",{"href":1347,"dataGaName":1348,"dataGaLocation":1320},"#contact","switch",{"altText":1322,"config":1350},{"src":1324,"dataGaName":1325,"dataGaLocation":1320},{"altText":1322,"config":1352},{"src":1353,"dataGaName":1325,"dataGaLocation":1320},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1355,"mobileIcon":1360,"desktopIcon":1362},{"text":1356,"config":1357},"Back to pricing",{"href":1125,"dataGaName":1358,"dataGaLocation":1320,"icon":1359},"back to pricing","GoBack",{"altText":1322,"config":1361},{"src":1324,"dataGaName":1325,"dataGaLocation":1320},{"altText":1322,"config":1363},{"src":1328,"dataGaName":1325,"dataGaLocation":1320},{"title":1365,"button":1366,"config":1370},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1030,"config":1367},{"href":1032,"dataGaName":1368,"dataGaLocation":1369},"orbit-ga-banner","global-banner",{"layout":1371,"disabled":911},"release",{"data":1373},{"text":1374,"config":1375,"items":1380,"minimal":1607},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1376,"facebook":1377,"youtube":1378,"linkedin":1379},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1381,1429,1487,1534,1575],{"title":1123,"links":1382,"subMenu":1398},[1383,1388,1393],{"text":1384,"config":1385},"View plans",{"href":1125,"dataGaName":1386,"dataGaLocation":1387},"view plans","footer",{"text":1389,"config":1390},"Why Premium?",{"href":1391,"dataGaName":1392,"dataGaLocation":1387},"/pricing/premium/","why premium",{"text":1394,"config":1395},"Why Ultimate?",{"href":1396,"dataGaName":1397,"dataGaLocation":1387},"/pricing/ultimate/","why ultimate",[1399],{"title":1400,"links":1401},"Contact Us",[1402,1405,1407,1409,1414,1419,1424],{"text":1403,"config":1404},"Contact sales",{"href":1271,"dataGaName":942,"dataGaLocation":1387},{"text":1274,"config":1406},{"href":1276,"dataGaName":1277,"dataGaLocation":1387},{"text":1279,"config":1408},{"href":1281,"dataGaName":1282,"dataGaLocation":1387},{"text":1410,"config":1411},"Status",{"href":1412,"dataGaName":1413,"dataGaLocation":1387},"https://status.gitlab.com/","status",{"text":1415,"config":1416},"Terms of use",{"href":1417,"dataGaName":1418,"dataGaLocation":1387},"/terms/","terms of use",{"text":1420,"config":1421},"Privacy statement",{"href":1422,"dataGaName":1423,"dataGaLocation":1387},"/privacy/","privacy statement",{"text":1425,"config":1426},"Cookie preferences",{"dataGaName":1427,"dataGaLocation":1387,"id":1428,"isOneTrustButton":116},"cookie preferences","ot-sdk-btn",{"title":950,"links":1430,"subMenu":1446},[1431,1434,1436,1438,1440,1442],{"text":1432,"config":1433},"Explore the platform",{"href":958,"dataGaName":952,"dataGaLocation":1387},{"text":1009,"config":1435},{"href":1011,"dataGaName":1012,"dataGaLocation":1387},{"text":921,"config":1437},{"href":965,"dataGaName":966,"dataGaLocation":1387},{"text":1014,"config":1439},{"href":1016,"dataGaName":1017,"dataGaLocation":1387},{"text":996,"config":1441},{"href":998,"dataGaName":999,"dataGaLocation":1387},{"text":1443,"config":1444},"Why GitLab",{"href":1314,"dataGaName":1445,"dataGaLocation":1387},"why gitlab",[1447],{"title":1448,"links":1449},"Topics",[1450,1454,1459,1463,1468,1472,1477,1482],{"text":921,"config":1451},{"href":1452,"dataGaName":1453,"dataGaLocation":1387},"/topics/ci-cd/","cicd",{"text":1455,"config":1456},"GitOps",{"href":1457,"dataGaName":1458,"dataGaLocation":1387},"/topics/gitops/","gitops",{"text":961,"config":1460},{"href":1461,"dataGaName":1462,"dataGaLocation":1387},"/topics/devops/","devops",{"text":1464,"config":1465},"Version Control",{"href":1466,"dataGaName":1467,"dataGaLocation":1387},"/topics/version-control/","version control",{"text":923,"config":1469},{"href":1470,"dataGaName":1471,"dataGaLocation":1387},"/topics/devsecops/","devsecops",{"text":1473,"config":1474},"Cloud Native",{"href":1475,"dataGaName":1476,"dataGaLocation":1387},"/topics/cloud-native/","cloud native",{"text":1478,"config":1479},"AI for Coding",{"href":1480,"dataGaName":1481,"dataGaLocation":1387},"/topics/devops/ai-for-coding/","ai for coding",{"text":1483,"config":1484},"Agentic AI",{"href":1485,"dataGaName":1486,"dataGaLocation":1387},"/topics/agentic-ai/","agentic ai",{"title":1035,"links":1488},[1489,1492,1495,1498,1501,1504,1506,1508,1510,1512,1514,1517,1519,1522,1526,1530],{"text":1490,"config":1491},"DevOps modernization",{"href":1050,"dataGaName":1051,"dataGaLocation":1387},{"text":1493,"config":1494},"Security modernization",{"href":1055,"dataGaName":1056,"dataGaLocation":1387},{"text":1496,"config":1497},"AI modernization",{"href":1060,"dataGaName":1061,"dataGaLocation":1387},{"text":1499,"config":1500},"Financial services",{"href":1086,"dataGaName":1087,"dataGaLocation":1387},{"text":1502,"config":1503},"Public sector",{"href":1091,"dataGaName":1092,"dataGaLocation":1387},{"text":1094,"config":1505},{"href":1096,"dataGaName":1097,"dataGaLocation":1387},{"text":1099,"config":1507},{"href":1101,"dataGaName":1102,"dataGaLocation":1387},{"text":1104,"config":1509},{"href":1106,"dataGaName":1107,"dataGaLocation":1387},{"text":1109,"config":1511},{"href":1111,"dataGaName":1112,"dataGaLocation":1387},{"text":1066,"config":1513},{"href":1068,"dataGaName":1069,"dataGaLocation":1387},{"text":1515,"config":1516},"Small business",{"href":1073,"dataGaName":1074,"dataGaLocation":1387},{"text":1076,"config":1518},{"href":1078,"dataGaName":1079,"dataGaLocation":1387},{"text":1455,"config":1520},{"href":1521,"dataGaName":1458,"dataGaLocation":1387},"/solutions/gitops/",{"text":1523,"config":1524},"Software composition analysis",{"href":1003,"dataGaName":1525,"dataGaLocation":1387},"software composition analysis",{"text":1527,"config":1528},"Value stream management",{"href":1021,"dataGaName":1529,"dataGaLocation":1387},"value stream management",{"text":1531,"config":1532},"All solutions",{"href":1042,"dataGaName":1533,"dataGaLocation":1387},"all solutions",{"title":1128,"links":1535},[1536,1541,1546,1548,1550,1552,1554,1556,1558,1560,1562,1564,1566,1568,1571],{"text":1537,"config":1538},"Install",{"href":1539,"dataGaName":1540,"dataGaLocation":1387},"/install/","install",{"text":1542,"config":1543},"Quick start guides",{"href":1544,"dataGaName":1545,"dataGaLocation":1387},"/get-started/","quick setup checklists",{"text":1141,"config":1547},{"href":1143,"dataGaName":1144,"dataGaLocation":1387},{"text":1146,"config":1549},{"href":1148,"dataGaName":1149,"dataGaLocation":1387},{"text":1151,"config":1551},{"href":1153,"dataGaName":1154,"dataGaLocation":1387},{"text":1156,"config":1553},{"href":1158,"dataGaName":1159,"dataGaLocation":1387},{"text":1161,"config":1555},{"href":1163,"dataGaName":1164,"dataGaLocation":1387},{"text":1174,"config":1557},{"href":1176,"dataGaName":1177,"dataGaLocation":1387},{"text":1179,"config":1559},{"href":1181,"dataGaName":1182,"dataGaLocation":1387},{"text":1184,"config":1561},{"href":1186,"dataGaName":1187,"dataGaLocation":1387},{"text":1189,"config":1563},{"href":1191,"dataGaName":1192,"dataGaLocation":1387},{"text":1194,"config":1565},{"href":1196,"dataGaName":1197,"dataGaLocation":1387},{"text":1257,"config":1567},{"href":1259,"dataGaName":1260,"dataGaLocation":1387},{"text":1569,"config":1570},"What's new",{"href":1205,"dataGaName":1206,"dataGaLocation":1387},{"text":1572,"config":1573},"All resources",{"href":1135,"dataGaName":1574,"dataGaLocation":1387},"all resources",{"title":1208,"links":1576},[1577,1579,1581,1583,1585,1587,1589,1591,1593,1597,1602],{"text":1216,"config":1578},{"href":1218,"dataGaName":1210,"dataGaLocation":1387},{"text":1221,"config":1580},{"href":1223,"dataGaName":1224,"dataGaLocation":1387},{"text":1227,"config":1582},{"href":1229,"dataGaName":1230,"dataGaLocation":1387},{"text":1232,"config":1584},{"href":1234,"dataGaName":1235,"dataGaLocation":1387},{"text":1237,"config":1586},{"href":1239,"dataGaName":1240,"dataGaLocation":1387},{"text":1242,"config":1588},{"href":1244,"dataGaName":1245,"dataGaLocation":1387},{"text":1247,"config":1590},{"href":1249,"dataGaName":1250,"dataGaLocation":1387},{"text":1252,"config":1592},{"href":1254,"dataGaName":1255,"dataGaLocation":1387},{"text":1594,"config":1595},"Sustainability",{"href":1596,"dataGaName":1594,"dataGaLocation":1387},"/sustainability/",{"text":1598,"config":1599},"Diversity, inclusion and belonging (DIB)",{"href":1600,"dataGaName":1601,"dataGaLocation":1387},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1603,"config":1604},"Modern Slavery Transparency Statement",{"href":1605,"dataGaName":1606,"dataGaLocation":1387},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1608},[1609,1612,1615],{"text":1610,"config":1611},"Terms",{"href":1417,"dataGaName":1418,"dataGaLocation":1387},{"text":1613,"config":1614},"Cookies",{"dataGaName":1427,"dataGaLocation":1387,"id":1428,"isOneTrustButton":116},{"text":1616,"config":1617},"Privacy",{"href":1422,"dataGaName":1423,"dataGaLocation":1387},[1619,1632],{"id":1620,"title":7,"body":909,"config":1621,"content":1623,"description":909,"extension":420,"meta":1627,"navigation":116,"path":1628,"seo":1629,"stem":1630,"__hash__":1631},"blogAuthors/en-us/blog/authors/sophia-manicor.yml",{"template":1622},"BlogAuthor",{"name":7,"config":1624},{"headshot":1625,"ctfId":1626},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749665576/Blog/Author%20Headshots/sophie_manicor_headshot.png","79Msqcc9YZrC0IvTggfQ5y",{},"/en-us/blog/authors/sophia-manicor",{},"en-us/blog/authors/sophia-manicor","i6tZEYh0BGVe56GYn5Z59J7fVNHk3-yVCcPBXBlfXJY",{"id":1633,"title":8,"body":909,"config":1634,"content":1635,"description":909,"extension":420,"meta":1639,"navigation":116,"path":1640,"seo":1641,"stem":1642,"__hash__":1643},"blogAuthors/en-us/blog/authors/noah-ing.yml",{"template":1622},{"name":8,"config":1636},{"headshot":1637,"ctfId":1638},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749664410/Blog/Author%20Headshots/noahing.png","noahing",{},"/en-us/blog/authors/noah-ing",{},"en-us/blog/authors/noah-ing","NHgV_yTX8kHX01mE2SSxC6hcOMw3BCWiblr8m6csLkw",[1645,1653,1661],{"title":1646,"description":1647,"heroImage":1648,"category":905,"date":1649,"authors":1650,"slug":1652,"externalUrl":909},"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",[1651],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1654,"description":1655,"heroImage":1656,"category":905,"date":1657,"authors":1658,"slug":1660,"externalUrl":909},"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",[1659],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1662,"description":1663,"heroImage":1664,"category":905,"date":1665,"authors":1666,"slug":1668,"externalUrl":909},"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",[1667],"Isa Huerga","co-create-h1-2026",{"header":1670,"text":1671,"button":1675,"disclaimer":1678},"Start your free\n\n30-day GitLab trial\n",[1672,1673,1674],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":934,"config":1676},{"href":1677,"dataGaName":937,"dataGaLocation":1177},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1680,"blurb":1681,"button":1682,"secondaryButton":1687},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1683,"config":1684},"Get your free trial",{"href":1685,"dataGaName":937,"dataGaLocation":1686},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1403,"config":1688},{"href":1271,"dataGaName":942,"dataGaLocation":1686},1794911785448]