[{"data":1,"prerenderedAt":1879},["ShallowReactive",2],{"/blog/using-the-gitlab-ci-slash-cd-for-smart-home-configuration-management":3,"navigation-en-us":1127,"banner-en-us":1565,"footer-en-us":1573,"blog-post-authors-en-us-Mario de la Ossa":1819,"blog-related-posts-en-us-using-the-gitlab-ci-slash-cd-for-smart-home-configuration-management":1834,"blog-share-wrapper-en-us":1859,"next-steps-en-us":1869},{"id":4,"title":5,"authors":6,"body":8,"category":1108,"date":1109,"description":1110,"extension":1111,"externalUrl":1112,"faq":1112,"featured":1113,"heroImage":1114,"hidePromo":1113,"meta":1115,"navigation":952,"path":1116,"seo":1117,"slug":1121,"stem":1122,"tags":1123,"template":1125,"updatedDate":1112,"__hash__":1126},"blogPosts/en-us/blog/using-the-gitlab-ci-slash-cd-for-smart-home-configuration-management.md","How to simplify your smart home configuration with GitLab CI/CD",[7],"Mario de la Ossa",{"type":9,"value":10,"toc":1098},"minimark",[11,27,36,49,75,78,93,98,101,109,113,227,230,234,242,253,264,271,274,285,291,331,336,345,351,399,416,419,450,453,460,467,473,477,480,483,498,503,512,562,565,585,588,602,606,620,732,739,772,778,800,809,812,842,845,849,852,855,871,887,893,1014,1043,1049,1052,1058,1062,1065,1081,1094],[12,13,14,15,21,22,26],"p",{},"So you've read all about the ",[16,17,20],"a",{"href":18,"rel":19},"https://en.wikipedia.org/wiki/Internet_of_things",[],"Internet of Things"," and all the cool stuff you can do with it – from setting up timers for your lights to ",[16,23,25],{"href":24},"/blog/introducing-auto-breakfast-from-gitlab/","making your breakfast"," – and now you're itching to get started? Great!",[12,28,29,30,35],{},"If you're a power user, you've probably settled on using ",[16,31,34],{"href":32,"rel":33},"https://www.home-assistant.io/",[],"Home Assistant"," as your smart home hub, but this choice has a few pitfalls:",[37,38,39,43,46],"ul",{},[40,41,42],"li",{},"It's annoying to SSH into the server itself to change configuration. Wouldn't you like to use your favorite local editor instead?",[40,44,45],{},"How do you keep your configuration backed up?",[40,47,48],{},"How do you protect yourself from accidentally messing up the configuration?",[12,50,51,52,57,58,62,63,68,69,74],{},"In this guide we'll show you how to fix these annoyances yourself, thanks to Git and the power of ",[16,53,56],{"href":54,"rel":55},"https://docs.gitlab.com/ci/pipelines/",[],"GitLab Pipelines","! We will set up a pipeline that will check your home-assistant configuration and deploy it to your home-assistant install, giving you the power to deploy changes from anywhere in the world with a simple ",[59,60,61],"code",{},"git push","!\nDid you go on vacation and forget you wanted your lights to ",[16,64,67],{"href":65,"rel":66},"https://community.home-assistant.io/t/set-random-time-for-random-automatic-turning-off-lights-mimic-someone-is-home/3524",[],"turn on and off randomly to make it seem like someone's home","? No worries! Just open GitLab's ",[16,70,73],{"href":71,"rel":72},"https://docs.gitlab.com/user/project/web_ide/",[],"Web IDE"," and make your changes from your hotel room.",[12,76,77],{},"By the end of this tutorial you'll have:",[37,79,80,87,90],{},[40,81,82,83,86],{},"Automatic configuration backups thanks to ",[59,84,85],{},"git",". You'll be able to see the history of every change you've made and revert changes easily.",[40,88,89],{},"Automatic configuration testing via GitLab pipelines. Never again will a simple typo have you scratching your head, wondering why things don't work!",[40,91,92],{},"An easy way to push changes to your Home Assistant configuration without having to SSH into the server.",[94,95,97],"h2",{"id":96},"requirements","Requirements",[12,99,100],{},"In this guide we'll be assuming a few things:",[37,102,103,106],{},[40,104,105],{},"You installed Home Assistant using the Docker image",[40,107,108],{},"The server Home Assistant runs in is accessible from the internet via SSH (or you're using a self-managed GitLab installation in the same network)",[94,110,112],{"id":111},"set-up-your-server","Set up your server",[114,115,116,119,136,184],"ol",{},[40,117,118],{},"Navigate to your Home Assistant configuration folder.",[40,120,121,122,125,126],{},"Create a new file called ",[59,123,124],{},".gitignore"," with the following content:",[127,128,134],"pre",{"className":129,"code":131,"language":132,"meta":133},[130],"language-text","*.db\n*.log\n","text","",[59,135,131],{"__ignoreMap":133},[40,137,138,139],{},"Initialize the Git repo",[127,140,144],{"className":141,"code":142,"language":143,"meta":133,"style":133},"language-bash shiki shiki-themes github-light","git init\ngit add .\ngit commit -m 'Initial commit'\n","bash",[59,145,146,158,169],{"__ignoreMap":133},[147,148,151,154],"span",{"class":149,"line":150},"line",1,[147,152,85],{"class":153},"s7eDp",[147,155,157],{"class":156},"sYBdl"," init\n",[147,159,161,163,166],{"class":149,"line":160},2,[147,162,85],{"class":153},[147,164,165],{"class":156}," add",[147,167,168],{"class":156}," .\n",[147,170,172,174,177,181],{"class":149,"line":171},3,[147,173,85],{"class":153},[147,175,176],{"class":156}," commit",[147,178,180],{"class":179},"sYu0t"," -m",[147,182,183],{"class":156}," 'Initial commit'\n",[40,185,186,191,192],{},[16,187,190],{"href":188,"rel":189},"https://gitlab.com/projects/new",[],"Create a new GitLab project"," and push to it",[127,193,195],{"className":141,"code":194,"language":143,"meta":133,"style":133},"git remote add origin YOUR_PROJECT_HERE\ngit push -u origin master\n",[59,196,197,212],{"__ignoreMap":133},[147,198,199,201,204,206,209],{"class":149,"line":150},[147,200,85],{"class":153},[147,202,203],{"class":156}," remote",[147,205,165],{"class":156},[147,207,208],{"class":156}," origin",[147,210,211],{"class":156}," YOUR_PROJECT_HERE\n",[147,213,214,216,219,222,224],{"class":149,"line":160},[147,215,85],{"class":153},[147,217,218],{"class":156}," push",[147,220,221],{"class":179}," -u",[147,223,208],{"class":156},[147,225,226],{"class":156}," master\n",[12,228,229],{},"With this you now have a backup of your Home Assistant configuration. Let's now set up the GitLab pipeline!",[94,231,233],{"id":232},"setting-up-the-pipeline","Setting up the pipeline",[12,235,236,237,241],{},"We have a few goals for the ",[16,238,240],{"href":239},"/topics/ci-cd/","CI/CD pipeline",":",[37,243,244,247,250],{},[40,245,246],{},"Test the new configuration to ensure it's valid",[40,248,249],{},"Deploy the new configuration to the Home Assistant server",[40,251,252],{},"Bonus: Notify us of a successful deployment, since the default is to only notify for failures",[12,254,255],{},[16,256,259,260,263],{"href":257,"rel":258},"https://gitlab.com/mdelaossa/hass-via-cicd/blob/master/.gitlab-ci.yml",[],"The complete ",[59,261,262],{},".gitlab-ci.yml"," can be found here.",[12,265,266],{},[16,267,270],{"href":268,"rel":269},"https://docs.gitlab.com/ci/yaml/",[],"General documentation for how to configure jobs can be found here.",[12,272,273],{},"We will be using the following stages in our pipeline:",[37,275,276,279,282],{},[40,277,278],{},"test: Will test the Home Assistant configuration to ensure it is valid",[40,280,281],{},"deploy: Will update the Home Assistant configuration in the server and restart Home Assistant",[40,283,284],{},"notify: Will send a push notification with success/failure state",[12,286,287,288,290],{},"Since these aren't default pipeline stages we need to declare them in our ",[59,289,262],{}," like so:",[127,292,296],{"className":293,"code":294,"language":295,"meta":133,"style":133},"language-yaml shiki shiki-themes github-light","stages:\n  - test\n  - deploy\n  - notify\n\n","yaml",[59,297,298,308,316,323],{"__ignoreMap":133},[147,299,300,304],{"class":149,"line":150},[147,301,303],{"class":302},"shJU0","stages",[147,305,307],{"class":306},"sgsFI",":\n",[147,309,310,313],{"class":149,"line":160},[147,311,312],{"class":306},"  - ",[147,314,315],{"class":156},"test\n",[147,317,318,320],{"class":149,"line":171},[147,319,312],{"class":306},[147,321,322],{"class":156},"deploy\n",[147,324,326,328],{"class":149,"line":325},4,[147,327,312],{"class":306},[147,329,330],{"class":156},"notify\n",[332,333,335],"h3",{"id":334},"automating-configuration-testing","Automating configuration testing",[12,337,338,339,344],{},"Since GitLab CI/CD ",[16,340,343],{"href":341,"rel":342},"https://docs.gitlab.com/ci/docker/using_docker_images/",[],"supports Docker images"," and Home Assistant is available as a Docker image, this is a fairly straightforward stage to add.",[12,346,347,348,350],{},"Add this to your ",[59,349,262],{}," file:",[127,352,354],{"className":293,"code":353,"language":295,"meta":133,"style":133},"test:\n  stage: test\n  image: homeassistant/amd64-homeassistant\n  script:\n    - hass --script check_config -c .\n\n",[59,355,356,363,373,383,390],{"__ignoreMap":133},[147,357,358,361],{"class":149,"line":150},[147,359,360],{"class":302},"test",[147,362,307],{"class":306},[147,364,365,368,371],{"class":149,"line":160},[147,366,367],{"class":302},"  stage",[147,369,370],{"class":306},": ",[147,372,315],{"class":156},[147,374,375,378,380],{"class":149,"line":171},[147,376,377],{"class":302},"  image",[147,379,370],{"class":306},[147,381,382],{"class":156},"homeassistant/amd64-homeassistant\n",[147,384,385,388],{"class":149,"line":325},[147,386,387],{"class":302},"  script",[147,389,307],{"class":306},[147,391,393,396],{"class":149,"line":392},5,[147,394,395],{"class":306},"    - ",[147,397,398],{"class":156},"hass --script check_config -c .\n",[12,400,401,402,404,405,407,408,411,412,415],{},"With this we are creating a job called ",[59,403,360],{}," which will run in the ",[59,406,360],{}," stage. We're using the ",[59,409,410],{},"homeassistant/amd64-homeassistant"," image because it exposes the ",[59,413,414],{},"hass"," command globally so we can use the built-in configuration checking command on our committed files. That's it!",[12,417,418],{},"Feel free to commit and push this change to test it out!",[127,420,422],{"className":141,"code":421,"language":143,"meta":133,"style":133},"git add .\ngit commit -m 'Added testing stage to GitLab pipeline'\ngit push\n",[59,423,424,432,443],{"__ignoreMap":133},[147,425,426,428,430],{"class":149,"line":150},[147,427,85],{"class":153},[147,429,165],{"class":156},[147,431,168],{"class":156},[147,433,434,436,438,440],{"class":149,"line":160},[147,435,85],{"class":153},[147,437,176],{"class":156},[147,439,180],{"class":179},[147,441,442],{"class":156}," 'Added testing stage to GitLab pipeline'\n",[147,444,445,447],{"class":149,"line":171},[147,446,85],{"class":153},[147,448,449],{"class":156}," push\n",[12,451,452],{},"You'll now see that a pipeline gets created whenever you push:",[12,454,455],{},[456,457],"img",{"alt":458,"src":459},"HASS Test pipeline success","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398467/blog/Content%20Images/hass-cicd/pipeline-pass-1.png",[12,461,462,463,466],{},"If your configuration contains any errors, they'll be shown in the ",[59,464,465],{},"Failed Jobs"," view of the pipeline and you'll get an email notifying you of the failure:",[12,468,469],{},[456,470],{"alt":471,"src":472},"HASS Test pipeline failure","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398467/blog/Content%20Images/hass-cicd/pipeline-fail-1.png",[332,474,476],{"id":475},"automating-deployments","Automating deployments",[12,478,479],{},"Now that we have automated testing, let's add another stage that will deploy our new configuration if the tests pass!",[12,481,482],{},"\"Deploying\" in this case will consist of:",[37,484,485,488,495],{},[40,486,487],{},"SSHing into the server",[40,489,490,491,494],{},"Doing a ",[59,492,493],{},"git pull"," to pull down changes from the repo",[40,496,497],{},"Restart the Home Assistant Docker image",[499,500,502],"h4",{"id":501},"preparing-the-server-and-gitlab-for-ssh-access","Preparing the server (and GitLab) for SSH access",[12,504,505,506,511],{},"Since we will be using SSH we need to prepare our server first. We'll follow these instructions from the GitLab documentation.\nWe will also set some ",[16,507,510],{"href":508,"rel":509},"https://gitlab.com/help/ci/variables/README#variables",[],"CI/CD Variables",".",[114,513,514,545,555],{},[40,515,516,517],{},"Generate a new SSH key pair. It's OK to save them to the current folder as you'll delete them later anyway.",[127,518,520],{"className":141,"code":519,"language":143,"meta":133,"style":133},"ssh-keygen -t rsa -C \"hass-deploy\" -b 4096\n",[59,521,522],{"__ignoreMap":133},[147,523,524,527,530,533,536,539,542],{"class":149,"line":150},[147,525,526],{"class":153},"ssh-keygen",[147,528,529],{"class":179}," -t",[147,531,532],{"class":156}," rsa",[147,534,535],{"class":179}," -C",[147,537,538],{"class":156}," \"hass-deploy\"",[147,540,541],{"class":179}," -b",[147,543,544],{"class":179}," 4096\n",[40,546,547,548,551,552],{},"On the server that runs Home Assistant, save the contents of the public key (the file ending in ",[59,549,550],{},".pub",") to ",[59,553,554],{},"/home/user_running_hass/.ssh/authorized_keys",[40,556,557,558,561],{},"Go to your GitLab project's CI/CD variables (inside Settings). Add the contents of the private key file to a variable named ",[59,559,560],{},"SSH_PRIVATE_KEY",". You can now delete the SSH key pair files if you'd like, or store them somewhere safe.",[12,563,564],{},"We also need to add our server's host keys to the GitLab runner so the runner will be able to SSH successfully. Alternatively we could disable host key checking, but this is not recommended.",[114,566,567,574],{},[40,568,569,570,573],{},"On your server, run ",[59,571,572],{},"ssh-keyscan example.com"," where example.com is the domain or IP of your server.",[40,575,576,577,580,581,584],{},"Create a new CI/CD variable called ",[59,578,579],{},"SSH_KNOWN_HOSTS"," and add the output of ",[59,582,583],{},"ssh-keyscan"," to it.",[12,586,587],{},"You should also create two other CI/CD variables (optional):",[37,589,590,596],{},[40,591,592,595],{},[59,593,594],{},"DEPLOY_USER",": the user running HASS that the runner with SSH into the server as to perform the deploy",[40,597,598,601],{},[59,599,600],{},"DEPLOY_HOST",": the domain or IP of the server",[499,603,605],{"id":604},"the-deploy-stage","The deploy stage",[12,607,608,609,611,612,615,616,619],{},"Now that we have prepared our server and GitLab CI/CD variables, we can add our deploy stage to ",[59,610,262],{},". Please note that we are using the ",[59,613,614],{},"only: "," keyword so that only new commits in the ",[59,617,618],{},"master"," branch will attempt a deploy.",[127,621,623],{"className":293,"code":622,"language":295,"meta":133,"style":133},"deploy:\n  stage: deploy\n  only:\n    - master\n  before_script:\n    - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'\n    - eval $(ssh-agent -s)\n    - echo \"$SSH_PRIVATE_KEY\" | tr -d '\\r' | ssh-add - > /dev/null\n    - mkdir -p ~/.ssh\n    - chmod 700 ~/.ssh\n    - echo \"$SSH_KNOWN_HOSTS\" > ~/.ssh/known_hosts\n    - chmod 644 ~/.ssh/known_hosts\n  script:\n    - ssh $DEPLOY_USER@$DEPLOY_HOST \"cd '$DEPLOY_PATH'; git pull; docker restart home-assistant\"\n\n",[59,624,625,632,640,647,654,661,669,677,685,693,701,709,717,724],{"__ignoreMap":133},[147,626,627,630],{"class":149,"line":150},[147,628,629],{"class":302},"deploy",[147,631,307],{"class":306},[147,633,634,636,638],{"class":149,"line":160},[147,635,367],{"class":302},[147,637,370],{"class":306},[147,639,322],{"class":156},[147,641,642,645],{"class":149,"line":171},[147,643,644],{"class":302},"  only",[147,646,307],{"class":306},[147,648,649,651],{"class":149,"line":325},[147,650,395],{"class":306},[147,652,653],{"class":156},"master\n",[147,655,656,659],{"class":149,"line":392},[147,657,658],{"class":302},"  before_script",[147,660,307],{"class":306},[147,662,664,666],{"class":149,"line":663},6,[147,665,395],{"class":306},[147,667,668],{"class":156},"'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'\n",[147,670,672,674],{"class":149,"line":671},7,[147,673,395],{"class":306},[147,675,676],{"class":156},"eval $(ssh-agent -s)\n",[147,678,680,682],{"class":149,"line":679},8,[147,681,395],{"class":306},[147,683,684],{"class":156},"echo \"$SSH_PRIVATE_KEY\" | tr -d '\\r' | ssh-add - > /dev/null\n",[147,686,688,690],{"class":149,"line":687},9,[147,689,395],{"class":306},[147,691,692],{"class":156},"mkdir -p ~/.ssh\n",[147,694,696,698],{"class":149,"line":695},10,[147,697,395],{"class":306},[147,699,700],{"class":156},"chmod 700 ~/.ssh\n",[147,702,704,706],{"class":149,"line":703},11,[147,705,395],{"class":306},[147,707,708],{"class":156},"echo \"$SSH_KNOWN_HOSTS\" > ~/.ssh/known_hosts\n",[147,710,712,714],{"class":149,"line":711},12,[147,713,395],{"class":306},[147,715,716],{"class":156},"chmod 644 ~/.ssh/known_hosts\n",[147,718,720,722],{"class":149,"line":719},13,[147,721,387],{"class":302},[147,723,307],{"class":306},[147,725,727,729],{"class":149,"line":726},14,[147,728,395],{"class":306},[147,730,731],{"class":156},"ssh $DEPLOY_USER@$DEPLOY_HOST \"cd '$DEPLOY_PATH'; git pull; docker restart home-assistant\"\n",[12,733,734,735,738],{},"The ",[59,736,737],{},"before_script"," above is in charge of:",[37,740,741,748,753,759,766],{},[40,742,743,744,747],{},"Making sure ",[59,745,746],{},"ssh-agent"," is installed and installing it otherwise",[40,749,743,750,752],{},[59,751,746],{}," is running",[40,754,755,756,758],{},"Adding the ",[59,757,560],{}," to the keys to use when logging into a server",[40,760,761,762,765],{},"Creating the ",[59,763,764],{},".ssh"," folder with required permissions",[40,767,768,769,771],{},"Adding the values we added to the ",[59,770,579],{}," variable to the proper location",[12,773,734,774,777],{},[59,775,776],{},"script"," portion is what actually deploys our new configuration:",[37,779,780,787,793],{},[40,781,782,783,786],{},"We ",[59,784,785],{},"cd"," into the proper location (where the Home Assistant configuration files are kept)",[40,788,789,790,792],{},"We update the configuration with a ",[59,791,493],{},", since this directory is a Git repo",[40,794,795,796,799],{},"We restart Home Assistant (in this case the Docker image was created with the name ",[59,797,798],{},"home-assistant",". Please use the name of your container)",[12,801,802,803,805,806,808],{},"Note: If you did not create ",[59,804,594],{}," and ",[59,807,600],{}," variables on GitLab, please replace the proper values in the script",[12,810,811],{},"Now let's commit and push this new stage to GitLab!",[127,813,815],{"className":141,"code":814,"language":143,"meta":133,"style":133},"git add .\ngit commit -m 'Added deploy stage to GitLab pipeline'\ngit push\n",[59,816,817,825,836],{"__ignoreMap":133},[147,818,819,821,823],{"class":149,"line":150},[147,820,85],{"class":153},[147,822,165],{"class":156},[147,824,168],{"class":156},[147,826,827,829,831,833],{"class":149,"line":160},[147,828,85],{"class":153},[147,830,176],{"class":156},[147,832,180],{"class":179},[147,834,835],{"class":156}," 'Added deploy stage to GitLab pipeline'\n",[147,837,838,840],{"class":149,"line":171},[147,839,85],{"class":153},[147,841,449],{"class":156},[12,843,844],{},"With this new stage added, you can now edit your configuration from anywhere (including the GitLab Web IDE!) and be confident that these changes will be pushed to your Home Assistant server if there are no issues with the configuration.\nThere's no longer a need to figure out how to connect directly to your Home Assistant server to make the edits you need.",[332,846,848],{"id":847},"bonus-successful-deployment-notifications","Bonus: Successful deployment notifications",[12,850,851],{},"You'll notice that if the configuration is wrong or an error occurs during the deployment, you will get an email notification, but what about when everything runs successfully?",[12,853,854],{},"We have two options:",[114,856,857,864],{},[40,858,859,860,863],{},"Enable the ",[59,861,862],{},"Pipeline Emails"," integration and set it to notify on every pipeline",[40,865,866,867,870],{},"Add a new stage called ",[59,868,869],{},"notify"," and use it to send push notifications to your phone",[12,872,873,874,879,880,883,884,511],{},"While email is really nice, there's something really satisfying about getting push notification for your services, so let's set things up using ",[16,875,878],{"href":876,"rel":877},"https://pushover.net/",[],"Pushover",".\nYou'll need to create an 'Application' and add the token you get to a GitLab variable called ",[59,881,882],{},"PUSHOVER_API_TOKEN",". You'll also need to add your user key to a variable called ",[59,885,886],{},"PUSHOVER_USER_TOKEN",[12,888,889,890,892],{},"Since we'd like a different notification depending on whether our pipeline passed or failed, we will be adding two jobs to the ",[59,891,869],{}," stage:",[127,894,896],{"className":293,"code":895,"language":295,"meta":133,"style":133},"notify_success:\n  stage: notify\n  allow_failure: true\n  only:\n    - master\n  script:\n    - curl -s --form-string \"token=$PUSHOVER_API_TOKEN\" --form-string \"user=$PUSHOVER_USER_TOKEN\" --form-string \"message=New Hass config deployed successfully!\" https://api.pushover.net/1/messages.json\n\nnotify_fail:\n  stage: notify\n  allow_failure: true\n  only:\n    - master\n  when: on_failure\n  script:\n    - curl -s --form-string \"token=$PUSHOVER_API_TOKEN\" --form-string \"user=$PUSHOVER_USER_TOKEN\" --form-string \"message=New Hass config failed. Please check for errors\" https://api.pushover.net/1/messages.json\n\n",[59,897,898,905,913,923,929,935,941,948,954,961,969,977,983,989,999,1006],{"__ignoreMap":133},[147,899,900,903],{"class":149,"line":150},[147,901,902],{"class":302},"notify_success",[147,904,307],{"class":306},[147,906,907,909,911],{"class":149,"line":160},[147,908,367],{"class":302},[147,910,370],{"class":306},[147,912,330],{"class":156},[147,914,915,918,920],{"class":149,"line":171},[147,916,917],{"class":302},"  allow_failure",[147,919,370],{"class":306},[147,921,922],{"class":179},"true\n",[147,924,925,927],{"class":149,"line":325},[147,926,644],{"class":302},[147,928,307],{"class":306},[147,930,931,933],{"class":149,"line":392},[147,932,395],{"class":306},[147,934,653],{"class":156},[147,936,937,939],{"class":149,"line":663},[147,938,387],{"class":302},[147,940,307],{"class":306},[147,942,943,945],{"class":149,"line":671},[147,944,395],{"class":306},[147,946,947],{"class":156},"curl -s --form-string \"token=$PUSHOVER_API_TOKEN\" --form-string \"user=$PUSHOVER_USER_TOKEN\" --form-string \"message=New Hass config deployed successfully!\" https://api.pushover.net/1/messages.json\n",[147,949,950],{"class":149,"line":679},[147,951,953],{"emptyLinePlaceholder":952},true,"\n",[147,955,956,959],{"class":149,"line":687},[147,957,958],{"class":302},"notify_fail",[147,960,307],{"class":306},[147,962,963,965,967],{"class":149,"line":695},[147,964,367],{"class":302},[147,966,370],{"class":306},[147,968,330],{"class":156},[147,970,971,973,975],{"class":149,"line":703},[147,972,917],{"class":302},[147,974,370],{"class":306},[147,976,922],{"class":179},[147,978,979,981],{"class":149,"line":711},[147,980,644],{"class":302},[147,982,307],{"class":306},[147,984,985,987],{"class":149,"line":719},[147,986,395],{"class":306},[147,988,653],{"class":156},[147,990,991,994,996],{"class":149,"line":726},[147,992,993],{"class":302},"  when",[147,995,370],{"class":306},[147,997,998],{"class":156},"on_failure\n",[147,1000,1002,1004],{"class":149,"line":1001},15,[147,1003,387],{"class":302},[147,1005,307],{"class":306},[147,1007,1009,1011],{"class":149,"line":1008},16,[147,1010,395],{"class":306},[147,1012,1013],{"class":156},"curl -s --form-string \"token=$PUSHOVER_API_TOKEN\" --form-string \"user=$PUSHOVER_USER_TOKEN\" --form-string \"message=New Hass config failed. Please check for errors\" https://api.pushover.net/1/messages.json\n",[12,1015,1016,1017,1019,1020,1022,1023,1025,1026,1029,1030,1034,1035,1038,1039,1042],{},"Our first job, ",[59,1018,902],{},", runs when the stage before it (",[59,1021,629],{},") completes successfully. This is the default for GitLab. Our ",[59,1024,958],{}," job on the other hand has ",[59,1027,1028],{},"when: on_failure"," set, which means it will ",[1031,1032,1033],"em",{},"only"," run when the stage before it fails. We also set ",[59,1036,1037],{},"allow_failure: true"," on both these jobs so that we aren't notified of a failed pipeline if for some reason the notification commands fail. We also set the ",[59,1040,1041],{},"only: - master"," option since deploys only happen on the master branch.",[12,1044,1045,1046,1048],{},"We are using Pushover's API to send the message we want in the ",[59,1047,776],{}," area.",[12,1050,1051],{},"With this final stage in place, your pipeline should now look like this:",[12,1053,1054],{},[456,1055],{"alt":1056,"src":1057},"HASS pipeline overview","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398467/blog/Content%20Images/hass-cicd/pipeline-final-1.png",[332,1059,1061],{"id":1060},"enjoy","Enjoy!",[12,1063,1064],{},"There you have it! Now you can edit your Home Assistant configuration from anywhere you'd like, using your favorite editor, by following three simple steps:",[114,1066,1067,1073,1076],{},[40,1068,1069,1072],{},[59,1070,1071],{},"git clone PATH_TO_REPO"," (if you have not cloned it before)",[40,1074,1075],{},"Edit the configuration",[40,1077,1078],{},[59,1079,1080],{},"git push -u remote master",[12,1082,1083,1088,1089],{},[16,1084,1087],{"href":1085,"rel":1086},"https://unsplash.com/photos/9TF54VdG0ws?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText",[],"Photo"," by Kevin Bhagat on ",[16,1090,1093],{"href":1091,"rel":1092},"https://unsplash.com/search/photos/smart-home?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText",[],"Unsplash",[1095,1096,1097],"style",{},"html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}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 .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}",{"title":133,"searchDepth":160,"depth":160,"links":1099},[1100,1101,1102],{"id":96,"depth":160,"text":97},{"id":111,"depth":160,"text":112},{"id":232,"depth":160,"text":233,"children":1103},[1104,1105,1106,1107],{"id":334,"depth":171,"text":335},{"id":475,"depth":171,"text":476},{"id":847,"depth":171,"text":848},{"id":1060,"depth":171,"text":1061},"engineering","2018-08-02","How to use GitLab pipelines to automatically test and deploy new home-assistant configurations, wherever you are.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749678717/Blog/Hero%20Images/ci-smart-home-configuration.jpg",{},"/en-us/blog/using-the-gitlab-ci-slash-cd-for-smart-home-configuration-management",{"title":5,"description":1110,"ogTitle":5,"ogDescription":1110,"noIndex":1113,"ogImage":1114,"ogUrl":1118,"ogSiteName":1119,"ogType":1120,"canonicalUrls":1118},"https://about.gitlab.com/blog/using-the-gitlab-ci-slash-cd-for-smart-home-configuration-management","https://about.gitlab.com","article","using-the-gitlab-ci-slash-cd-for-smart-home-configuration-management","en-us/blog/using-the-gitlab-ci-slash-cd-for-smart-home-configuration-management",[1124,85],"CI","BlogPost","NJUabG9ZG06RRpmvAvxsknvZGCxIQl3zOZwUjQtknSk",{"logo":1128,"freeTrial":1133,"sales":1138,"login":1143,"items":1148,"search":1484,"minimal":1516,"duo":1535,"switchNav":1544,"pricingDeployment":1555},{"config":1129},{"href":1130,"dataGaName":1131,"dataGaLocation":1132},"/","gitlab logo","header",{"text":1134,"config":1135},"Get free trial",{"href":1136,"dataGaName":1137,"dataGaLocation":1132},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1139,"config":1140},"Request a demo",{"href":1141,"dataGaName":1142,"dataGaLocation":1132},"/request-a-demo/","sales",{"text":1144,"config":1145},"Sign in",{"href":1146,"dataGaName":1147,"dataGaLocation":1132},"https://gitlab.com/users/sign_in/","sign in",[1149,1235,1323,1328,1408,1462],{"text":1150,"left":952,"config":1151,"menu":1153},"Platform",{"dataNavLevelOne":1152},"platform",{"type":1154,"link":1155,"columns":1159,"feature":1224},"lists",{"text":1156,"config":1157},"Explore the Platform",{"href":1158,"dataGaName":1152,"dataGaLocation":1132},"/platform/",[1160,1183,1206],{"title":1161,"items":1162},"DevOps",[1163,1168,1173,1178],{"text":1164,"config":1165},"CI/CD",{"href":1166,"dataGaLocation":1132,"dataGaName":1167},"/solutions/continuous-integration/","ci/cd",{"text":1169,"config":1170},"Source Code Management",{"href":1171,"dataGaLocation":1132,"dataGaName":1172},"/solutions/source-code-management/","source code management",{"text":1174,"config":1175},"Agile Delivery",{"href":1176,"dataGaLocation":1132,"dataGaName":1177},"/solutions/agile-delivery/","agile delivery",{"text":1179,"config":1180},"Artifact Management",{"href":1181,"dataGaLocation":1132,"dataGaName":1182},"/artifact-central/","artifact management",{"title":1184,"items":1185},"Security & Governance",[1186,1191,1196,1201],{"text":1187,"config":1188},"Application Security Testing",{"href":1189,"dataGaLocation":1132,"dataGaName":1190},"/solutions/application-security-testing/","application security testing",{"text":1192,"config":1193},"Governance & Compliance",{"href":1194,"dataGaLocation":1132,"dataGaName":1195},"/solutions/software-compliance/","governance and compliance",{"text":1197,"config":1198},"Secrets Management",{"href":1199,"dataGaLocation":1132,"dataGaName":1200},"/gitlab-secrets-manager/","secrets management",{"text":1202,"config":1203},"Supply Chain Security",{"href":1204,"dataGaLocation":1132,"dataGaName":1205},"/solutions/supply-chain/","supply chain security",{"title":1207,"items":1208},"Agentic AI & Context",[1209,1214,1219],{"text":1210,"config":1211},"Duo Agent Platform",{"href":1212,"dataGaLocation":1132,"dataGaName":1213},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1215,"config":1216},"Orbit Context Graph",{"href":1217,"dataGaLocation":1132,"dataGaName":1218},"/gitlab-orbit/","orbit",{"text":1220,"config":1221},"Visibility & Measurement",{"href":1222,"dataGaLocation":1132,"dataGaName":1223},"/solutions/visibility-measurement/","visibility and measurement",{"config":1225,"title":1228,"text":1229,"link":1230},{"background":1226,"textColor":1227},"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":1231,"config":1232},"Read the announcement",{"href":1233,"dataGaName":1234,"dataGaLocation":1132},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1236,"left":952,"config":1237,"menu":1239},"Solutions",{"dataNavLevelOne":1238},"solutions",{"type":1154,"link":1240,"columns":1244,"feature":1314},{"text":1241,"config":1242},"View all Solutions",{"href":1243,"dataGaName":1238,"dataGaLocation":1132},"/solutions/",[1245,1263,1281],{"title":1246,"items":1247},"Outcomes",[1248,1253,1258],{"text":1249,"config":1250},"DevOps Modernization",{"href":1251,"dataGaLocation":1132,"dataGaName":1252},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1254,"config":1255},"Security Modernization",{"href":1256,"dataGaLocation":1132,"dataGaName":1257},"/assessments/security-modernization-assessment/","security modernization",{"text":1259,"config":1260},"AI Modernization",{"href":1261,"dataGaLocation":1132,"dataGaName":1262},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1264,"items":1265},"By size",[1266,1271,1276],{"text":1267,"config":1268},"Enterprise",{"href":1269,"dataGaLocation":1132,"dataGaName":1270},"/enterprise/","enterprise",{"text":1272,"config":1273},"Small Business",{"href":1274,"dataGaLocation":1132,"dataGaName":1275},"/small-business/","small business",{"text":1277,"config":1278},"Startups",{"href":1279,"dataGaLocation":1132,"dataGaName":1280},"/solutions/startups/","startups",{"title":1282,"items":1283},"Industries",[1284,1289,1294,1299,1304,1309],{"text":1285,"config":1286},"Financial Services",{"href":1287,"dataGaLocation":1132,"dataGaName":1288},"/solutions/finance/","financial services",{"text":1290,"config":1291},"Public Sector",{"href":1292,"dataGaLocation":1132,"dataGaName":1293},"/solutions/public-sector/","public sector",{"text":1295,"config":1296},"Telecommunications",{"href":1297,"dataGaLocation":1132,"dataGaName":1298},"/solutions/telecommunications/","telecommunications",{"text":1300,"config":1301},"Automotive",{"href":1302,"dataGaLocation":1132,"dataGaName":1303},"/solutions/automotive/","automotive",{"text":1305,"config":1306},"Education",{"href":1307,"dataGaLocation":1132,"dataGaName":1308},"/solutions/education/","education",{"text":1310,"config":1311},"Aerospace",{"href":1312,"dataGaLocation":1132,"dataGaName":1313},"/solutions/aerospace/","aerospace",{"config":1315,"title":1316,"text":1317,"link":1318},{"background":1226,"textColor":1227},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1319,"config":1320},"Explore the standard",{"href":1321,"dataGaName":1322,"dataGaLocation":1132},"/gitlab-security-standard/","gitlab security standard",{"text":1324,"config":1325},"Pricing",{"href":1326,"dataGaName":1327,"dataGaLocation":1132,"dataNavLevelOne":1327},"/pricing/","pricing",{"text":1329,"config":1330,"menu":1332},"Resources",{"dataNavLevelOne":1331},"resources",{"type":1154,"link":1333,"columns":1337,"feature":1399},{"text":1334,"config":1335},"View all resources",{"href":1336,"dataGaName":1331,"dataGaLocation":1132},"/resources/",[1338,1371],{"title":1339,"items":1340},"Discover",[1341,1346,1351,1356,1361,1366],{"text":1342,"config":1343},"Docs",{"href":1344,"dataGaName":1345,"dataGaLocation":1132},"https://docs.gitlab.com/","docs",{"text":1347,"config":1348},"University",{"href":1349,"dataGaName":1350,"dataGaLocation":1132},"https://university.gitlab.com/","university",{"text":1352,"config":1353},"Demo Series",{"href":1354,"dataGaName":1355,"dataGaLocation":1132},"/gitlab-technical-demo-series/","demo series",{"text":1357,"config":1358},"Demo Hub",{"href":1359,"dataGaName":1360,"dataGaLocation":1132},"/demo-hub/","demo hub",{"text":1362,"config":1363},"Services",{"href":1364,"dataGaName":1365,"dataGaLocation":1132},"/services/","services",{"text":1367,"config":1368},"Well Architected",{"href":1369,"dataGaName":1370,"dataGaLocation":1132},"/resources/well-architected/","well architected",{"title":1372,"items":1373},"Connect",[1374,1379,1384,1389,1394],{"text":1375,"config":1376},"Blog",{"href":1377,"dataGaName":1378,"dataGaLocation":1132},"/blog/","blog",{"text":1380,"config":1381},"Community",{"href":1382,"dataGaName":1383,"dataGaLocation":1132},"/community/","community",{"text":1385,"config":1386},"Customers",{"href":1387,"dataGaName":1388,"dataGaLocation":1132},"/customers/","customers",{"text":1390,"config":1391},"Partners",{"href":1392,"dataGaName":1393,"dataGaLocation":1132},"/partners/","partners",{"text":1395,"config":1396},"Events",{"href":1397,"dataGaName":1398,"dataGaLocation":1132},"/events/","events",{"config":1400,"title":1401,"text":1402,"link":1403},{"background":1226,"textColor":1227},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1404,"config":1405},"Read the latest",{"href":1406,"dataGaName":1407,"dataGaLocation":1132},"/whats-new/","whats new",{"text":1409,"config":1410,"menu":1412},"Company",{"dataNavLevelOne":1411},"company",{"type":1154,"columns":1413},[1414],{"items":1415},[1416,1421,1427,1432,1437,1442,1447,1452,1457],{"text":1417,"config":1418},"About",{"href":1419,"dataGaName":1420,"dataGaLocation":1132},"/company/","about",{"text":1422,"config":1423,"footerGa":1426},"Jobs",{"href":1424,"dataGaName":1425,"dataGaLocation":1132},"/jobs/","jobs",{"dataGaName":1425},{"text":1428,"config":1429},"Press",{"href":1430,"dataGaName":1431,"dataGaLocation":1132},"/press/","press",{"text":1433,"config":1434},"Handbook",{"href":1435,"dataGaName":1436,"dataGaLocation":1132},"https://handbook.gitlab.com/","handbook",{"text":1438,"config":1439},"Leadership",{"href":1440,"dataGaName":1441,"dataGaLocation":1132},"/company/team/e-group/","leadership",{"text":1443,"config":1444},"Investor relations",{"href":1445,"dataGaName":1446,"dataGaLocation":1132},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1448,"config":1449},"Trust Center",{"href":1450,"dataGaName":1451,"dataGaLocation":1132},"/security/","trust center",{"text":1453,"config":1454},"AI Transparency Center",{"href":1455,"dataGaName":1456,"dataGaLocation":1132},"/ai-transparency-center/","ai transparency center",{"text":1458,"config":1459},"Newsletter",{"href":1460,"dataGaName":1461,"dataGaLocation":1132},"/company/contact/#contact-forms","newsletter",{"text":1463,"config":1464,"menu":1465},"Contact us",{"dataNavLevelOne":1411},{"type":1154,"columns":1466},[1467],{"items":1468},[1469,1474,1479],{"text":1470,"config":1471},"Talk to sales",{"href":1472,"dataGaName":1473,"dataGaLocation":1132},"/sales/","talk to sales",{"text":1475,"config":1476},"Support portal",{"href":1477,"dataGaName":1478,"dataGaLocation":1132},"https://support.gitlab.com/hc/en-us","support portal",{"text":1480,"config":1481},"Customer portal",{"href":1482,"dataGaName":1483,"dataGaLocation":1132},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1485,"login":1486,"suggestions":1493},"Close",{"text":1487,"link":1488},"To search repositories and projects, login to",{"text":1489,"config":1490},"gitlab.com",{"href":1146,"dataGaName":1491,"dataGaLocation":1492},"search login","search",{"text":1494,"default":1495},"Suggestions",[1496,1499,1502,1504,1508,1512],{"text":1497,"config":1498},"GitLab Duo Agent Platform",{"href":1212,"dataGaName":1497,"dataGaLocation":1492},{"text":1500,"config":1501},"Code Suggestions (AI)",{"href":1212,"dataGaName":1500,"dataGaLocation":1492},{"text":1164,"config":1503},{"href":1166,"dataGaName":1164,"dataGaLocation":1492},{"text":1505,"config":1506},"GitLab on AWS",{"href":1507,"dataGaName":1505,"dataGaLocation":1492},"/partners/technology-partners/aws/",{"text":1509,"config":1510},"GitLab on Google Cloud",{"href":1511,"dataGaName":1509,"dataGaLocation":1492},"/partners/technology-partners/google-cloud-platform/",{"text":1513,"config":1514},"Why GitLab?",{"href":1515,"dataGaName":1513,"dataGaLocation":1492},"/why-gitlab/",{"freeTrial":1517,"mobileIcon":1522,"desktopIcon":1527,"secondaryButton":1530},{"text":1518,"config":1519},"Start free trial",{"href":1520,"dataGaName":1137,"dataGaLocation":1521},"https://gitlab.com/-/trials/new/","nav",{"altText":1523,"config":1524},"Gitlab Icon",{"src":1525,"dataGaName":1526,"dataGaLocation":1521},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1523,"config":1528},{"src":1529,"dataGaName":1526,"dataGaLocation":1521},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1531,"config":1532},"Get Started",{"href":1533,"dataGaName":1534,"dataGaLocation":1521},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1536,"mobileIcon":1540,"desktopIcon":1542},{"text":1537,"config":1538},"Learn more about GitLab Duo",{"href":1212,"dataGaName":1539,"dataGaLocation":1521},"gitlab duo",{"altText":1523,"config":1541},{"src":1525,"dataGaName":1526,"dataGaLocation":1521},{"altText":1523,"config":1543},{"src":1529,"dataGaName":1526,"dataGaLocation":1521},{"button":1545,"mobileIcon":1550,"desktopIcon":1552},{"text":1546,"config":1547},"/switch",{"href":1548,"dataGaName":1549,"dataGaLocation":1521},"#contact","switch",{"altText":1523,"config":1551},{"src":1525,"dataGaName":1526,"dataGaLocation":1521},{"altText":1523,"config":1553},{"src":1554,"dataGaName":1526,"dataGaLocation":1521},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1556,"mobileIcon":1561,"desktopIcon":1563},{"text":1557,"config":1558},"Back to pricing",{"href":1326,"dataGaName":1559,"dataGaLocation":1521,"icon":1560},"back to pricing","GoBack",{"altText":1523,"config":1562},{"src":1525,"dataGaName":1526,"dataGaLocation":1521},{"altText":1523,"config":1564},{"src":1529,"dataGaName":1526,"dataGaLocation":1521},{"title":1566,"button":1567,"config":1571},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1231,"config":1568},{"href":1233,"dataGaName":1569,"dataGaLocation":1570},"orbit-ga-banner","global-banner",{"layout":1572,"disabled":1113},"release",{"data":1574},{"text":1575,"config":1576,"items":1581,"minimal":1808},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1577,"facebook":1578,"youtube":1579,"linkedin":1580},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1582,1630,1688,1735,1776],{"title":1324,"links":1583,"subMenu":1599},[1584,1589,1594],{"text":1585,"config":1586},"View plans",{"href":1326,"dataGaName":1587,"dataGaLocation":1588},"view plans","footer",{"text":1590,"config":1591},"Why Premium?",{"href":1592,"dataGaName":1593,"dataGaLocation":1588},"/pricing/premium/","why premium",{"text":1595,"config":1596},"Why Ultimate?",{"href":1597,"dataGaName":1598,"dataGaLocation":1588},"/pricing/ultimate/","why ultimate",[1600],{"title":1601,"links":1602},"Contact Us",[1603,1606,1608,1610,1615,1620,1625],{"text":1604,"config":1605},"Contact sales",{"href":1472,"dataGaName":1142,"dataGaLocation":1588},{"text":1475,"config":1607},{"href":1477,"dataGaName":1478,"dataGaLocation":1588},{"text":1480,"config":1609},{"href":1482,"dataGaName":1483,"dataGaLocation":1588},{"text":1611,"config":1612},"Status",{"href":1613,"dataGaName":1614,"dataGaLocation":1588},"https://status.gitlab.com/","status",{"text":1616,"config":1617},"Terms of use",{"href":1618,"dataGaName":1619,"dataGaLocation":1588},"/terms/","terms of use",{"text":1621,"config":1622},"Privacy statement",{"href":1623,"dataGaName":1624,"dataGaLocation":1588},"/privacy/","privacy statement",{"text":1626,"config":1627},"Cookie preferences",{"dataGaName":1628,"dataGaLocation":1588,"id":1629,"isOneTrustButton":952},"cookie preferences","ot-sdk-btn",{"title":1150,"links":1631,"subMenu":1647},[1632,1635,1637,1639,1641,1643],{"text":1633,"config":1634},"Explore the platform",{"href":1158,"dataGaName":1152,"dataGaLocation":1588},{"text":1210,"config":1636},{"href":1212,"dataGaName":1213,"dataGaLocation":1588},{"text":1164,"config":1638},{"href":1166,"dataGaName":1167,"dataGaLocation":1588},{"text":1215,"config":1640},{"href":1217,"dataGaName":1218,"dataGaLocation":1588},{"text":1197,"config":1642},{"href":1199,"dataGaName":1200,"dataGaLocation":1588},{"text":1644,"config":1645},"Why GitLab",{"href":1515,"dataGaName":1646,"dataGaLocation":1588},"why gitlab",[1648],{"title":1649,"links":1650},"Topics",[1651,1654,1659,1663,1668,1673,1678,1683],{"text":1164,"config":1652},{"href":239,"dataGaName":1653,"dataGaLocation":1588},"cicd",{"text":1655,"config":1656},"GitOps",{"href":1657,"dataGaName":1658,"dataGaLocation":1588},"/topics/gitops/","gitops",{"text":1161,"config":1660},{"href":1661,"dataGaName":1662,"dataGaLocation":1588},"/topics/devops/","devops",{"text":1664,"config":1665},"Version Control",{"href":1666,"dataGaName":1667,"dataGaLocation":1588},"/topics/version-control/","version control",{"text":1669,"config":1670},"DevSecOps",{"href":1671,"dataGaName":1672,"dataGaLocation":1588},"/topics/devsecops/","devsecops",{"text":1674,"config":1675},"Cloud Native",{"href":1676,"dataGaName":1677,"dataGaLocation":1588},"/topics/cloud-native/","cloud native",{"text":1679,"config":1680},"AI for Coding",{"href":1681,"dataGaName":1682,"dataGaLocation":1588},"/topics/devops/ai-for-coding/","ai for coding",{"text":1684,"config":1685},"Agentic AI",{"href":1686,"dataGaName":1687,"dataGaLocation":1588},"/topics/agentic-ai/","agentic ai",{"title":1236,"links":1689},[1690,1693,1696,1699,1702,1705,1707,1709,1711,1713,1715,1718,1720,1723,1727,1731],{"text":1691,"config":1692},"DevOps modernization",{"href":1251,"dataGaName":1252,"dataGaLocation":1588},{"text":1694,"config":1695},"Security modernization",{"href":1256,"dataGaName":1257,"dataGaLocation":1588},{"text":1697,"config":1698},"AI modernization",{"href":1261,"dataGaName":1262,"dataGaLocation":1588},{"text":1700,"config":1701},"Financial services",{"href":1287,"dataGaName":1288,"dataGaLocation":1588},{"text":1703,"config":1704},"Public sector",{"href":1292,"dataGaName":1293,"dataGaLocation":1588},{"text":1295,"config":1706},{"href":1297,"dataGaName":1298,"dataGaLocation":1588},{"text":1300,"config":1708},{"href":1302,"dataGaName":1303,"dataGaLocation":1588},{"text":1305,"config":1710},{"href":1307,"dataGaName":1308,"dataGaLocation":1588},{"text":1310,"config":1712},{"href":1312,"dataGaName":1313,"dataGaLocation":1588},{"text":1267,"config":1714},{"href":1269,"dataGaName":1270,"dataGaLocation":1588},{"text":1716,"config":1717},"Small business",{"href":1274,"dataGaName":1275,"dataGaLocation":1588},{"text":1277,"config":1719},{"href":1279,"dataGaName":1280,"dataGaLocation":1588},{"text":1655,"config":1721},{"href":1722,"dataGaName":1658,"dataGaLocation":1588},"/solutions/gitops/",{"text":1724,"config":1725},"Software composition analysis",{"href":1204,"dataGaName":1726,"dataGaLocation":1588},"software composition analysis",{"text":1728,"config":1729},"Value stream management",{"href":1222,"dataGaName":1730,"dataGaLocation":1588},"value stream management",{"text":1732,"config":1733},"All solutions",{"href":1243,"dataGaName":1734,"dataGaLocation":1588},"all solutions",{"title":1329,"links":1736},[1737,1742,1747,1749,1751,1753,1755,1757,1759,1761,1763,1765,1767,1769,1772],{"text":1738,"config":1739},"Install",{"href":1740,"dataGaName":1741,"dataGaLocation":1588},"/install/","install",{"text":1743,"config":1744},"Quick start guides",{"href":1745,"dataGaName":1746,"dataGaLocation":1588},"/get-started/","quick setup checklists",{"text":1342,"config":1748},{"href":1344,"dataGaName":1345,"dataGaLocation":1588},{"text":1347,"config":1750},{"href":1349,"dataGaName":1350,"dataGaLocation":1588},{"text":1352,"config":1752},{"href":1354,"dataGaName":1355,"dataGaLocation":1588},{"text":1357,"config":1754},{"href":1359,"dataGaName":1360,"dataGaLocation":1588},{"text":1362,"config":1756},{"href":1364,"dataGaName":1365,"dataGaLocation":1588},{"text":1375,"config":1758},{"href":1377,"dataGaName":1378,"dataGaLocation":1588},{"text":1380,"config":1760},{"href":1382,"dataGaName":1383,"dataGaLocation":1588},{"text":1385,"config":1762},{"href":1387,"dataGaName":1388,"dataGaLocation":1588},{"text":1390,"config":1764},{"href":1392,"dataGaName":1393,"dataGaLocation":1588},{"text":1395,"config":1766},{"href":1397,"dataGaName":1398,"dataGaLocation":1588},{"text":1458,"config":1768},{"href":1460,"dataGaName":1461,"dataGaLocation":1588},{"text":1770,"config":1771},"What's new",{"href":1406,"dataGaName":1407,"dataGaLocation":1588},{"text":1773,"config":1774},"All resources",{"href":1336,"dataGaName":1775,"dataGaLocation":1588},"all resources",{"title":1409,"links":1777},[1778,1780,1782,1784,1786,1788,1790,1792,1794,1798,1803],{"text":1417,"config":1779},{"href":1419,"dataGaName":1411,"dataGaLocation":1588},{"text":1422,"config":1781},{"href":1424,"dataGaName":1425,"dataGaLocation":1588},{"text":1428,"config":1783},{"href":1430,"dataGaName":1431,"dataGaLocation":1588},{"text":1433,"config":1785},{"href":1435,"dataGaName":1436,"dataGaLocation":1588},{"text":1438,"config":1787},{"href":1440,"dataGaName":1441,"dataGaLocation":1588},{"text":1443,"config":1789},{"href":1445,"dataGaName":1446,"dataGaLocation":1588},{"text":1448,"config":1791},{"href":1450,"dataGaName":1451,"dataGaLocation":1588},{"text":1453,"config":1793},{"href":1455,"dataGaName":1456,"dataGaLocation":1588},{"text":1795,"config":1796},"Sustainability",{"href":1797,"dataGaName":1795,"dataGaLocation":1588},"/sustainability/",{"text":1799,"config":1800},"Diversity, inclusion and belonging (DIB)",{"href":1801,"dataGaName":1802,"dataGaLocation":1588},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1804,"config":1805},"Modern Slavery Transparency Statement",{"href":1806,"dataGaName":1807,"dataGaLocation":1588},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1809},[1810,1813,1816],{"text":1811,"config":1812},"Terms",{"href":1618,"dataGaName":1619,"dataGaLocation":1588},{"text":1814,"config":1815},"Cookies",{"dataGaName":1628,"dataGaLocation":1588,"id":1629,"isOneTrustButton":952},{"text":1817,"config":1818},"Privacy",{"href":1623,"dataGaName":1624,"dataGaLocation":1588},[1820],{"id":1821,"title":1822,"body":1112,"config":1823,"content":1825,"description":1112,"extension":1828,"meta":1829,"navigation":952,"path":1830,"seo":1831,"stem":1832,"__hash__":1833},"blogAuthors/en-us/blog/authors/mario-de-la-ossa.yml","Mario De La Ossa",{"template":1824},"BlogAuthor",{"name":7,"config":1826},{"headshot":133,"ctfId":1827},"mdelaossa","yml",{},"/en-us/blog/authors/mario-de-la-ossa",{},"en-us/blog/authors/mario-de-la-ossa","2UY4H6UtHLbgIJgp3-Uf3gLcRl1G68QoLp5E8W57quM",[1835,1843,1851],{"title":1836,"description":1837,"heroImage":1838,"category":1108,"date":1839,"authors":1840,"slug":1842,"externalUrl":1112},"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",[1841],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1844,"description":1845,"heroImage":1846,"category":1108,"date":1847,"authors":1848,"slug":1850,"externalUrl":1112},"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",[1849],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1852,"description":1853,"heroImage":1854,"category":1108,"date":1855,"authors":1856,"slug":1858,"externalUrl":1112},"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",[1857],"Isa Huerga","co-create-h1-2026",{"header":1860,"text":1861,"button":1865,"disclaimer":1868},"Start your free\n\n30-day GitLab trial\n",[1862,1863,1864],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":1134,"config":1866},{"href":1867,"dataGaName":1137,"dataGaLocation":1378},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1870,"blurb":1871,"button":1872,"secondaryButton":1877},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1873,"config":1874},"Get your free trial",{"href":1875,"dataGaName":1137,"dataGaLocation":1876},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1604,"config":1878},{"href":1472,"dataGaName":1142,"dataGaLocation":1876},1794911786656]