[{"data":1,"prerenderedAt":2409},["ShallowReactive",2],{"/blog/connecting-gitlab-and-pantheon-streamline-wordpress-drupal-workflows":3,"navigation-en-us":1625,"banner-en-us":2050,"footer-en-us":2060,"blog-post-authors-en-us-Andrew Taylor":2304,"blog-related-posts-en-us-connecting-gitlab-and-pantheon-streamline-wordpress-drupal-workflows":2319,"blog-promotions-en-us":2345,"next-steps-en-us":2399},{"id":4,"title":5,"authors":6,"body":8,"category":1602,"date":1603,"description":1604,"extension":1605,"externalUrl":1606,"faq":1606,"featured":1607,"heroImage":1608,"meta":1609,"navigation":980,"path":1610,"seo":1611,"slug":1616,"stem":1617,"tags":1618,"template":1623,"updatedDate":1606,"__hash__":1624},"blogPosts/en-us/blog/connecting-gitlab-and-pantheon-streamline-wordpress-drupal-workflows.md","How to connect GitLab and Pantheon to streamline Drupal and WordPress workflows",[7],"Andrew Taylor",{"type":9,"value":10,"toc":1585},"minimark",[11,22,27,30,38,41,45,48,55,58,61,70,75,78,87,90,111,115,123,138,142,151,160,166,169,176,180,183,192,195,201,212,228,231,237,255,262,271,275,278,281,287,300,307,374,380,386,395,400,411,414,420,427,436,442,446,449,474,482,497,503,507,516,522,528,534,538,547,556,566,577,586,595,716,725,734,745,751,757,763,766,772,779,785,794,800,813,827,831,838,850,856,859,870,878,882,893,901,913,919,935,944,950,964,1383,1402,1473,1486,1492,1500,1506,1511,1515,1518,1521,1524,1545,1548,1557,1570,1574,1581],[12,13,14,15,21],"p",{},"As a member of the developer relations team at ",[16,17,20],"a",{"href":18,"rel":19},"https://pantheon.io",[],"Pantheon",", I’m always looking for new ways to help WordPress and Drupal developers solve workflow problems with automation. To this end, I love exploring new tools and how they can be used effectively together.",[23,24,26],"h3",{"id":25},"one-frequent-problem-i-see-teams-facing-is-the-dreaded-single-staging-server","One frequent problem I see teams facing is the dreaded single staging server.",[12,28,29],{},"It’s not fun to wait in line for your turn to use the staging server or to send clients a URL and tell them to review some work but ignore other, incomplete pieces.",[12,31,32,37],{},[16,33,36],{"href":34,"rel":35},"https://pantheon.io/docs/multidev/",[],"Multidev environments",", one of Pantheon’s advanced developer tools, solves this issue by allowing environments matching Git branches to be created on demand. Each multidev environment has its own URL and database, making independent work, QA, and approval possible without developers stepping on each other's toes.",[12,39,40],{},"However, Pantheon doesn’t provide source control management (SCM) or continuous integration and continuous deployment (CI/CD) tooling. Instead, the platform is flexible enough to be integrated with your preferred tools.",[23,42,44],{"id":43},"the-next-problem-i-see-consistently-is-teams-using-different-tools-to-manage-development-work-and-to-build-and-deploy-that-work","The next problem I see consistently is teams using different tools to manage development work and to build and deploy that work.",[12,46,47],{},"For example, using one tool for SCM and something else for CI/CD. Having to jump between tools to edit code and diagnose failing jobs is cumbersome.",[12,49,50,54],{},[16,51,53],{"href":52},"/","GitLab"," solves this problem by providing a full suite of development workflow tools, such as SCM, with features like issues and merge requests, best-in-class CI/CD, and a container registry, to name a few. I haven't come across another application that is so complete to manage development workflow.",[12,56,57],{},"As someone who loves automation, I explored connecting Pantheon to GitLab so that commits to the master branch on GitLab deploy to the main dev environment on Pantheon. Additionally, merge requests on GitLab can create and deploy code to Pantheon multidev environments.",[12,59,60],{},"This tutorial will walk you through setting up the connection between GitLab and Pantheon so you, too, can streamline your WordPress and Drupal workflow.",[12,62,63,64,69],{},"This can be done with GitLab repository mirroring, but we will be setting it up manually to get some experience with ",[16,65,68],{"href":66,"rel":67},"https://docs.gitlab.com/ci/",[],"GitLab CI"," and have the ability to expand beyond just deployment in the future.",[71,72,74],"h2",{"id":73},"background","Background",[12,76,77],{},"For this post, you need to know that Pantheon breaks each site down into three components: code, database, and files.",[12,79,80,81,86],{},"The code portion of a Pantheon site includes the CMS files, such as WordPress core, plugins and themes. These files are managed in a ",[16,82,85],{"href":83,"rel":84},"https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository",[],"Git repository"," hosted by Pantheon, which means we can deploy code from GitLab to Pantheon with Git.",[12,88,89],{},"When Pantheon refers to files, it is the media files, such as images, for your site. These are typically uploaded by site users and are ignored in Git.",[12,91,92,93,98,99,104,105,110],{},"You can ",[16,94,97],{"href":95,"rel":96},"https://pantheon.io/register",[],"create a free account",", learn more about the ",[16,100,103],{"href":101,"rel":102},"https://pantheon.io/docs/pantheon-workflow",[],"Pantheon workflow",", or ",[16,106,109],{"href":107,"rel":108},"https://pantheon.io/live-demo",[],"sign up for a live demo"," on pantheon.io.",[71,112,114],{"id":113},"assumptions","Assumptions",[12,116,117,118,122],{},"My project is named ",[119,120,121],"code",{},"pantheon-gitlab-blog-demo",", both on Pantheon and GitLab. You should use a unique project name. This tutorial uses a WordPress site. Drupal can be substituted, but some modification will be needed.",[12,124,125,126,131,132,137],{},"I'll also be using the ",[16,127,130],{"href":128,"rel":129},"https://git-scm.com/book/en/v2/Getting-Started-The-Command-Line",[],"Git command line"," but you can substitute a ",[16,133,136],{"href":134,"rel":135},"https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Graphical-Interfaces",[],"graphical interface"," if you prefer.",[71,139,141],{"id":140},"create-the-projects","Create the projects",[12,143,144,145,150],{},"First up, create a ",[16,146,149],{"href":147,"rel":148},"https://docs.gitlab.com/user/project/working_with_projects/#create-a-project",[],"new GitLab project"," – we'll come back to this in a little bit.",[12,152,153,154,159],{},"Now, ",[16,155,158],{"href":156,"rel":157},"https://pantheon.io/docs/launch-wordpress/",[],"create a new WordPress site on Pantheon",". After your new site is created, you will need to install WordPress for the site dashboard.",[12,161,162],{},[163,164,165],"em",{},"You might be tempted to make some changes, such as adding or removing plugins, but please refrain. We haven't connected the site to GitLab yet and want to make sure all code changes, e.g. adding or removing plugins, go through GitLab.",[12,167,168],{},"After WordPress is installed, go back to the Pantheon site dashboard and change the development mode to Git.",[12,170,171],{},[172,173],"img",{"alt":174,"src":175},"Pantheon Dashboard","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398815/blog/Content%20Images/pantheon-dashboard-after-fresh-wordpress-install.png",[71,177,179],{"id":178},"initial-commit-to-gitlab","Initial commit to GitLab",[12,181,182],{},"Next, we need to get the starting WordPress code from the Pantheon site over to GitLab. In order to do this, we will clone the code from the Pantheon site Git repository locally, then push it to the GitLab repository.",[12,184,185,186,191],{},"To make this easier, and more secure, ",[16,187,190],{"href":188,"rel":189},"https://pantheon.io/docs/ssh-keys/",[],"add an SSH key to Pantheon"," to avoid entering your password when cloning Pantheon Git repository. While you're at it, add an SSH key to GitLab as well.",[12,193,194],{},"To do this, clone the Pantheon site locally by copying the command in the Clone with Git drop-down field from the site dashboard.",[12,196,197],{},[172,198],{"alt":199,"src":200},"CPantheon git connection","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398815/blog/Content%20Images/pantheon-git-connection-info.png",[12,202,203],{},[163,204,205,206,211],{},"If you need help, see the ",[16,207,210],{"href":208,"rel":209},"https://pantheon.io/docs/git/#clone-your-site-codebase",[],"Pantheon Start With Git"," documentation.",[12,213,214,215,218,219,227],{},"Next, we want to change the ",[119,216,217],{},"git remote origin"," to point to GitLab, instead of Pantheon. This can be done with the ",[16,220,223,226],{"href":221,"rel":222},"https://git-scm.com/docs/git-remote",[],[119,224,225],{},"git remote"," command",".",[12,229,230],{},"Head over to your GitLab project and grab the repository URL, which can be found at in the Clone drop-down of the project details screen. Be sure to use the Clone with SSH variant of the GitLab repository URL, since we set up an SSH key earlier.",[12,232,233],{},[172,234],{"alt":235,"src":236},"Gitlab git connection","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398374/blog/Content%20Images/gitlab-git-connection-info.png",[12,238,239,240,242,243,246,247,250,251,254],{},"The default ",[119,241,225],{}," for the local copy of our code repository is ",[119,244,245],{},"origin",". We can change it with ",[119,248,249],{},"git remote set-url origin [GitLab repository URL]",", replacing ",[119,252,253],{},"[GitLab repository URL]"," with your actual GitLab repository URL.",[12,256,257,258,261],{},"Finally, run ",[119,259,260],{},"git push origin master --force"," to send the WordPress code from the Pantheon site to GitLab.",[12,263,264],{},[163,265,266,267,270],{},"The --force flag is only needed as part of this one-time step. Subsequent ",[119,268,269],{},"git push"," commands to GitLab won't need it.",[71,272,274],{"id":273},"set-up-credentials-and-variables","Set up credentials and variables",[12,276,277],{},"Remember how we added an SSH key locally to authorize with Pantheon and GitLab? Well, an SSH token can also be used to authorize GitLab and Pantheon.",[12,279,280],{},"GitLab has some great documentation, and we will be looking at the SSH keys when using the Docker executor section of the Using SSH keys with GitLab CI/CD doc.",[12,282,283,284],{},"At this point, we will need to do the first two steps: ",[163,285,286],{},"Create a new SSH key pair locally with ssh-keygen and Add the private key as a variable to your project.",[12,288,289,290,293,294,299],{},"When done, ",[119,291,292],{},"SSH_PRIVATE_KEY"," should be set as a ",[16,295,298],{"href":296,"rel":297},"https://docs.gitlab.com/ci/variables/",[],"GitLab CI/CD Environment Variables"," in the project settings.",[12,301,302,303,306],{},"To take care of the third and fourth steps, create ",[119,304,305],{},".gitlab-ci.yml"," file with the following contents:",[308,309,314],"pre",{"className":310,"code":311,"language":312,"meta":313,"style":313},"language-markdown shiki shiki-themes github-light","before_script:\n  # See https://docs.gitlab.com/ci/ssh_keys/\n  - eval $(ssh-agent -s)\n  - echo \"$SSH_PRIVATE_KEY\" | tr -d '\\r' | ssh-add - > /dev/null\n  - mkdir -p $HOME/.ssh && echo \"StrictHostKeyChecking no\" >> \"$HOME/.ssh/config\"\n  - git config --global user.email \"$GITLAB_USER_EMAIL\"\n  - git config --global user.name \"Gitlab CI\"\n","markdown","",[119,315,316,325,332,342,350,358,366],{"__ignoreMap":313},[317,318,321],"span",{"class":319,"line":320},"line",1,[317,322,324],{"class":323},"sgsFI","before_script:\n",[317,326,328],{"class":319,"line":327},2,[317,329,331],{"class":330},"surfw","  # See https://docs.gitlab.com/ci/ssh_keys/\n",[317,333,335,339],{"class":319,"line":334},3,[317,336,338],{"class":337},"sqxcx","  -",[317,340,341],{"class":323}," eval $(ssh-agent -s)\n",[317,343,345,347],{"class":319,"line":344},4,[317,346,338],{"class":337},[317,348,349],{"class":323}," echo \"$SSH_PRIVATE_KEY\" | tr -d '\\r' | ssh-add - > /dev/null\n",[317,351,353,355],{"class":319,"line":352},5,[317,354,338],{"class":337},[317,356,357],{"class":323}," mkdir -p $HOME/.ssh && echo \"StrictHostKeyChecking no\" >> \"$HOME/.ssh/config\"\n",[317,359,361,363],{"class":319,"line":360},6,[317,362,338],{"class":337},[317,364,365],{"class":323}," git config --global user.email \"$GITLAB_USER_EMAIL\"\n",[317,367,369,371],{"class":319,"line":368},7,[317,370,338],{"class":337},[317,372,373],{"class":323}," git config --global user.name \"Gitlab CI\"\n",[12,375,376,377,379],{},"Don't commit the ",[119,378,305],{}," file just yet, we will be adding more to it in the next section.",[12,381,382,383],{},"Now, we need to take care of step 5, ",[163,384,385],{},"add the public key from the one you created in the first step to the services that you want to have an access to from within the build environment.",[12,387,388,389,394],{},"In our case, the service we want to access from GitLab is Pantheon. Follow the Pantheon doc to ",[16,390,393],{"href":391,"rel":392},"https://pantheon.io/docs/ssh-keys/#add-your-ssh-key-to-pantheon",[],"Add Your SSH Key to Pantheon"," to complete this step.",[12,396,397],{},[163,398,399],{},"Be sure that the private SSH key is in GitLab and the public key is on Pantheon",[12,401,402,403,406,407,410],{},"We will also need to set some additional environment variables. The first one should be named PANTHEON_SITE, and the value will be the machine name of your ",[119,404,405],{},"Pantheon site",". and the value will be the ",[163,408,409],{},"machine name"," of your Pantheon site.",[12,412,413],{},"You can get the machine name from the end of the Clone with Git command. Since you already cloned the site locally, it will be the directory name of your local repository.",[12,415,416],{},[172,417],{"alt":418,"src":419},"wordpress machine name","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398816/blog/Content%20Images/pantheon-machine-name.png",[12,421,422,423,426],{},"The next GitLab CI environment variable to set is ",[119,424,425],{},"PANTHEON_GIT_URL",", which will be the Git repository URL of the Pantheon site that we used earlier.",[12,428,429],{},[163,430,431,432,435],{},"Enter just the SSH repository URL, leaving off ",[119,433,434],{},"git clone"," and the site machine name at the end.",[12,437,438,439,441],{},"Phew! Now that setup is done, we can move on to finishing our ",[119,440,305],{}," file.",[71,443,445],{"id":444},"create-the-deployment-job","Create the deployment job",[12,447,448],{},"What we will be doing with GitLab CI initially is very similar to what we did with Git repositories earlier. This time though, we will add the Pantheon repository as a second Git remote and then push the code from GitLab to Pantheon.",[12,450,451,452,457,458,461,462,457,467,470,471,473],{},"To do this, we will set up a ",[16,453,456],{"href":454,"rel":455},"https://docs.gitlab.com/ci/yaml/#stages",[],"stage"," named ",[119,459,460],{},"deploy"," and a ",[16,463,466],{"href":464,"rel":465},"https://docs.gitlab.com/ci/jobs/",[],"job",[119,468,469],{},"deploy:dev",", as it will deploy to the dev environment on Pantheon. The resulting ",[119,472,305],{}," file should look like this:",[308,475,480],{"className":476,"code":478,"language":479,"meta":313},[477],"language-text","stages:\n- deploy\n\nbefore_script:\n  # See https://docs.gitlab.com/ci/ssh_keys/\n  - eval $(ssh-agent -s)\n  - echo \"$SSH_PRIVATE_KEY\" | tr -d '\\r' | ssh-add - > /dev/null\n  - mkdir -p $HOME/.ssh && echo \"StrictHostKeyChecking no\" >> \"$HOME/.ssh/config\"\n  - git config --global user.email \"$GITLAB_USER_EMAIL\"\n  - git config --global user.name \"Gitlab CI\"\n\ndeploy:dev:\n  stage: deploy\n  environment:\n    name: dev\n    url: https://dev-$PANTHEON_SITE.pantheonsite.io/\n  script:\n    - git remote add pantheon $PANTHEON_GIT_URL\n    - git push pantheon master --force\n  only:\n    - master\n","text",[119,481,478],{"__ignoreMap":313},[12,483,484,486,487,490,491,493,494,496],{},[119,485,292],{},", ",[119,488,489],{},"PANTHEON_SITE",", and ",[119,492,425],{}," should all look familiar - they are the environment variables we set up earlier. Having environment variables will allow us to re-use the values multiple times in our ",[119,495,305],{}," file, while having one place to update them, should they change in the future.",[12,498,499,500,502],{},"Finally, add, commit, and push the ",[119,501,305],{}," file to send it to GitLab.",[71,504,506],{"id":505},"verify-the-deployment","Verify the deployment",[12,508,509,510,512,513,515],{},"If everything was done correctly, the ",[119,511,469],{}," job run on GitLab CI/CD, succeed and send the ",[119,514,305],{}," commit to Pantheon. Let's take a look!",[12,517,518],{},[172,519],{"alt":520,"src":521},"deploy job","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398355/blog/Content%20Images/gitlab-deploy-dev-job.png",[12,523,524],{},[172,525],{"alt":526,"src":527},"deploy job passing","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398355/blog/Content%20Images/gitlab-deploy-dev-job-passed.png",[12,529,530],{},[172,531],{"alt":532,"src":533},"gitlab commit on pantheon dev","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398351/blog/Content%20Images/gitlab-commits-on-pantheon-dev.png",[71,535,537],{"id":536},"sending-merge-request-branches-to-pantheon","Sending merge request branches to Pantheon",[12,539,540,541,546],{},"This next section makes use of my favorite Pantheon feature, ",[16,542,545],{"href":543,"rel":544},"https://pantheon.io/docs/multidev",[],"multidev",", which allows you to create additional Pantheon environments on demand associated with Git branches.",[12,548,549,550,555],{},"This section is entirely optional as ",[16,551,554],{"href":552,"rel":553},"https://pantheon.io/docs/multidev-faq/",[],"multidev access is restricted",", however, if you do have multidev access, having GitLab merge requests automatically create multidev environments on Pantheon is a huge workflow improvement.",[12,557,558,559,562,563,565],{},"We will start by making a new Git branch locally with ",[119,560,561],{},"git checkout -b multidev-support",". Now, let's edit ",[119,564,305],{}," again.",[12,567,568,569,572,573,576],{},"I like to use the merge request number in the Pantheon environment name. For example, the first merge request would be ",[119,570,571],{},"mr-1",", the second would be ",[119,574,575],{},"mr-2",", and so on.",[12,578,579,580,585],{},"Since the merge request changes, we need to define these Pantheon branch names dynamically. GitLab makes this easy by providing ",[16,581,584],{"href":582,"rel":583},"https://docs.gitlab.com/ci/variables/predefined_variables/",[],"predefined environment"," variables.",[12,587,588,589,592,593,441],{},"We can use ",[119,590,591],{},"$CI_MERGE_REQUEST_IID",", which provides the merge request number. Let's put that to use, along with our global environment variables from earlier, and add a new deploy:multidev job to the end of our ",[119,594,305],{},[308,596,600],{"className":597,"code":598,"language":599,"meta":313,"style":313},"language-yaml shiki shiki-themes github-light","deploy:multidev:\n  stage: deploy\n  environment:\n    name: multidev/mr-$CI_MERGE_REQUEST_IID\n    url: https://mr-$CI_MERGE_REQUEST_IID-$PANTHEON_SITE.pantheonsite.io/\n  script:\n    # Checkout the merge request source branch\n    - git checkout $CI_COMMIT_REF_NAME\n    # Add the Pantheon git repository as an additional remote\n    - git remote add pantheon $PANTHEON_GIT_URL\n    # Push the merge request source branch to Pantheon\n    - git push pantheon $CI_COMMIT_REF_NAME:mr-$CI_MERGE_REQUEST_IID --force\n  only:\n    - merge_requests\n","yaml",[119,601,602,611,623,630,640,650,657,663,672,678,686,692,700,708],{"__ignoreMap":313},[317,603,604,608],{"class":319,"line":320},[317,605,607],{"class":606},"shJU0","deploy:multidev",[317,609,610],{"class":323},":\n",[317,612,613,616,619],{"class":319,"line":327},[317,614,615],{"class":606},"  stage",[317,617,618],{"class":323},": ",[317,620,622],{"class":621},"sYBdl","deploy\n",[317,624,625,628],{"class":319,"line":334},[317,626,627],{"class":606},"  environment",[317,629,610],{"class":323},[317,631,632,635,637],{"class":319,"line":344},[317,633,634],{"class":606},"    name",[317,636,618],{"class":323},[317,638,639],{"class":621},"multidev/mr-$CI_MERGE_REQUEST_IID\n",[317,641,642,645,647],{"class":319,"line":352},[317,643,644],{"class":606},"    url",[317,646,618],{"class":323},[317,648,649],{"class":621},"https://mr-$CI_MERGE_REQUEST_IID-$PANTHEON_SITE.pantheonsite.io/\n",[317,651,652,655],{"class":319,"line":360},[317,653,654],{"class":606},"  script",[317,656,610],{"class":323},[317,658,659],{"class":319,"line":368},[317,660,662],{"class":661},"sAwPA","    # Checkout the merge request source branch\n",[317,664,666,669],{"class":319,"line":665},8,[317,667,668],{"class":323},"    - ",[317,670,671],{"class":621},"git checkout $CI_COMMIT_REF_NAME\n",[317,673,675],{"class":319,"line":674},9,[317,676,677],{"class":661},"    # Add the Pantheon git repository as an additional remote\n",[317,679,681,683],{"class":319,"line":680},10,[317,682,668],{"class":323},[317,684,685],{"class":621},"git remote add pantheon $PANTHEON_GIT_URL\n",[317,687,689],{"class":319,"line":688},11,[317,690,691],{"class":661},"    # Push the merge request source branch to Pantheon\n",[317,693,695,697],{"class":319,"line":694},12,[317,696,668],{"class":323},[317,698,699],{"class":621},"git push pantheon $CI_COMMIT_REF_NAME:mr-$CI_MERGE_REQUEST_IID --force\n",[317,701,703,706],{"class":319,"line":702},13,[317,704,705],{"class":606},"  only",[317,707,610],{"class":323},[317,709,711,713],{"class":319,"line":710},14,[317,712,668],{"class":323},[317,714,715],{"class":621},"merge_requests\n",[12,717,718,719,721,722,227],{},"This should look very similar to our ",[119,720,469],{}," job, only pushing a branch to Pantheon instead of ",[119,723,724],{},"master",[12,726,727,728,730,731,227],{},"After you add and commit the updated ",[119,729,305],{}," file, push this new branch to GitLab with ",[119,732,733],{},"git push -u origin multidev-support",[12,735,736,737,740,741,744],{},"Next, let's create a new merge request from our ",[119,738,739],{},"multidev-support"," branch by following the ",[163,742,743],{},"Create merge request"," prompt.",[12,746,747],{},[172,748],{"alt":749,"src":750},"create merge request","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398352/blog/Content%20Images/gitlab-create-merge-request-prompt.png",[12,752,753,754,756],{},"After creating the merge request, look for the  CI/CD job ",[119,755,607],{}," to run.",[12,758,759],{},[172,760],{"alt":761,"src":762},"multidev deploy success","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398751/blog/Content%20Images/multidev-branch-deploy-success.png",[12,764,765],{},"Look at that – a new branch was sent to Pantheon. However, when we go to the multidev section of the site dashboard on Pantheon there isn't a new multidev environment.",[12,767,768],{},[172,769],{"alt":770,"src":771},"multidev branch","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398819/blog/Content%20Images/pantheon-no-multidev-environments.png",[12,773,774,775,778],{},"Let's look at the ",[163,776,777],{},"Git"," Branches section.",[12,780,781],{},[172,782],{"alt":783,"src":784},"mr branch","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398817/blog/Content%20Images/pantheon-mr-1-branch.png",[12,786,787,788,790,791,793],{},"Our ",[119,789,571],{}," branch did make it to Pantheon after all. Go ahead and create an environment from the ",[119,792,571],{}," branch.",[12,795,796],{},[172,797],{"alt":798,"src":799},"create multidev","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398818/blog/Content%20Images/pantheon-mr-1-multidev-creation.png",[12,801,802,803,806,807,810,811,227],{},"Once the multidev environment has been created, head back to GitLab and look at the ",[163,804,805],{},"Operations > Environments"," section. You will notice entries for ",[119,808,809],{},"dev"," and ",[119,812,571],{},[12,814,815,816,819,820,810,823,826],{},"This is because we added an ",[119,817,818],{},"environment"," entry with ",[119,821,822],{},"name",[119,824,825],{},"url"," to our CI/CD jobs. If you click on the open environment icon, you will be taken to the URL for the multidev on Pantheon.",[71,828,830],{"id":829},"automating-multidev-creation","Automating multidev creation",[12,832,833,834,837],{},"We ",[163,835,836],{},"could"," stop here and try to remember to create a multidev environment each time there is a new merge request, but we can automate that process as well!",[12,839,840,841,846,847,227],{},"Pantheon has a command line tool, ",[16,842,845],{"href":843,"rel":844},"https://pantheon.io/docs/terminus/",[],"Terminus",", that allows you to interact with the platform in an automated fashion. Terminus will allow us to provision our multidev environments from the command line – perfect for use in ",[16,848,68],{"href":66,"rel":849},[],[12,851,852,853,227],{},"We will need a new merge request to test this, so let's create a new branch with ",[119,854,855],{},"git checkout -b auto-multidev-creation",[12,857,858],{},"In order to use Terminus in GitLab CI/CD jobs we will need a machine token to authenticate with Terminus and a container image with Terminus available.",[12,860,861,866,867,227],{},[16,862,865],{"href":863,"rel":864},"https://pantheon.io/docs/machine-tokens/#create-a-machine-token",[],"Create a Pantheon machine token",", save it to a safe place, and add it as a global GitLab environment variable named ",[119,868,869],{},"PANTHEON_MACHINE_TOKEN",[12,871,872],{},[163,873,874,875,877],{},"If you don't remember how to add GitLab environment variables, scroll up to where we defined ",[119,876,489],{}," earlier in the tutorial.",[71,879,881],{"id":880},"building-a-dockerfile-with-terminus","Building a Dockerfile with Terminus",[12,883,884,885,888,889,892],{},"If you don't have Docker or aren't comfortable working with ",[119,886,887],{},"Dockerfile"," files, you can use my image ",[119,890,891],{},"registry.gitlab.com/ataylorme/pantheon-gitlab-blog-demo:latest"," and skip this section.",[12,894,895,900],{},[16,896,899],{"href":897,"rel":898},"https://docs.gitlab.com/user/packages/container_registry/",[],"GitLab has a container registry"," that allows us to build and host a Dockerfile for use in our project. Let's create a Dockerfile that has Terminus available, so we can interact with Pantheon.",[12,902,903,904,909,910,912],{},"Terminus is a PHP-based command line tool, so we will start with a PHP image. I prefer to install Terminus via Composer so I'll be using ",[16,905,908],{"href":906,"rel":907},"https://hub.docker.com/_/composer",[],"the official Docker Composer image"," as a base. Create a ",[119,911,887],{}," in your local repository directory with the following contents:",[308,914,917],{"className":915,"code":916,"language":479,"meta":313},[477],"# Use the official Composer image as a parent image\nFROM composer:1.8\n\n# Update/upgrade apk\nRUN apk update\nRUN apk upgrade\n\n# Make the Terminus directory\nRUN mkdir -p /usr/local/share/terminus\n\n# Install Terminus 2.x with Composer\nRUN /usr/bin/env COMPOSER_BIN_DIR=/usr/local/bin composer -n --working-dir=/usr/local/share/terminus require pantheon-systems/terminus:\"^2\"\n",[119,918,916],{"__ignoreMap":313},[12,920,921,922,925,926,931,932,934],{},"Follow the ",[163,923,924],{},"Build and push images"," section of the ",[16,927,930],{"href":928,"rel":929},"https://gitlab.com/help/user/project/container_registry#build-and-push-images",[],"container registry documentation"," to build an image from the ",[119,933,887],{}," and upload it to GitLab.",[12,936,937,938,941,942,441],{},"Visit the ",[163,939,940],{},"Registry"," section of your GitLab project. If things went according to plan you will see your image listed. Make a note of the image tag link, as we will need to use that in our ",[119,943,305],{},[12,945,946],{},[172,947],{"alt":948,"src":949},"container registry","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398352/blog/Content%20Images/gitlab-container-registry.png",[12,951,952,953,956,957,959,960,963],{},"The ",[119,954,955],{},"script"," section of our ",[119,958,607],{}," job is starting to get long, so let's move it to a dedicated file. Create a new file ",[119,961,962],{},"private/multidev-deploy.sh"," with the following contents:",[308,965,969],{"className":966,"code":967,"language":968,"meta":313,"style":313},"language-bash shiki shiki-themes github-light","#!/bin/bash\n\n# Store the mr- environment name\nexport PANTHEON_ENV=mr-$CI_MERGE_REQUEST_IID\n\n# Authenticate with Terminus\nterminus auth:login --machine-token=$PANTHEON_MACHINE_TOKEN\n\n# Checkout the merge request source branch\ngit checkout $CI_COMMIT_REF_NAME\n\n# Add the Pantheon Git repository as an additional remote\ngit remote add pantheon $PANTHEON_GIT_URL\n\n# Push the merge request source branch to Pantheon\ngit push pantheon $CI_COMMIT_REF_NAME:$PANTHEON_ENV --force\n\n# Create a function for determining if a multidev exists\nTERMINUS_DOES_MULTIDEV_EXIST()\n{\n    # Stash a list of Pantheon multidev environments\n    PANTHEON_MULTIDEV_LIST=\"$(terminus multidev:list ${PANTHEON_SITE} --format=list --field=id)\"\n\n    while read -r multiDev; do\n        if [[ \"${multiDev}\" == \"$1\" ]]\n        then\n            return 0;\n        fi\n    done \u003C\u003C\u003C \"$PANTHEON_MULTIDEV_LIST\"\n\n    return 1;\n}\n\n# If the mutltidev doesn't exist\nif ! TERMINUS_DOES_MULTIDEV_EXIST $PANTHEON_ENV\nthen\n    # Create it with Terminus\n    echo \"No multidev for $PANTHEON_ENV found, creating one...\"\n    terminus multidev:create $PANTHEON_SITE.dev $PANTHEON_ENV\nelse\n    echo \"The multidev $PANTHEON_ENV already exists, skipping creating it...\"\nfi\n","bash",[119,970,971,976,982,987,1002,1006,1011,1027,1031,1036,1047,1051,1056,1072,1076,1082,1104,1109,1115,1124,1130,1136,1166,1171,1192,1225,1231,1243,1249,1266,1271,1282,1288,1293,1299,1314,1320,1326,1341,1358,1364,1377],{"__ignoreMap":313},[317,972,973],{"class":319,"line":320},[317,974,975],{"class":661},"#!/bin/bash\n",[317,977,978],{"class":319,"line":327},[317,979,981],{"emptyLinePlaceholder":980},true,"\n",[317,983,984],{"class":319,"line":334},[317,985,986],{"class":661},"# Store the mr- environment name\n",[317,988,989,993,996,999],{"class":319,"line":344},[317,990,992],{"class":991},"sD7c4","export",[317,994,995],{"class":323}," PANTHEON_ENV",[317,997,998],{"class":991},"=",[317,1000,1001],{"class":323},"mr-$CI_MERGE_REQUEST_IID\n",[317,1003,1004],{"class":319,"line":352},[317,1005,981],{"emptyLinePlaceholder":980},[317,1007,1008],{"class":319,"line":360},[317,1009,1010],{"class":661},"# Authenticate with Terminus\n",[317,1012,1013,1017,1020,1024],{"class":319,"line":368},[317,1014,1016],{"class":1015},"s7eDp","terminus",[317,1018,1019],{"class":621}," auth:login",[317,1021,1023],{"class":1022},"sYu0t"," --machine-token=",[317,1025,1026],{"class":323},"$PANTHEON_MACHINE_TOKEN\n",[317,1028,1029],{"class":319,"line":665},[317,1030,981],{"emptyLinePlaceholder":980},[317,1032,1033],{"class":319,"line":674},[317,1034,1035],{"class":661},"# Checkout the merge request source branch\n",[317,1037,1038,1041,1044],{"class":319,"line":680},[317,1039,1040],{"class":1015},"git",[317,1042,1043],{"class":621}," checkout",[317,1045,1046],{"class":323}," $CI_COMMIT_REF_NAME\n",[317,1048,1049],{"class":319,"line":688},[317,1050,981],{"emptyLinePlaceholder":980},[317,1052,1053],{"class":319,"line":694},[317,1054,1055],{"class":661},"# Add the Pantheon Git repository as an additional remote\n",[317,1057,1058,1060,1063,1066,1069],{"class":319,"line":702},[317,1059,1040],{"class":1015},[317,1061,1062],{"class":621}," remote",[317,1064,1065],{"class":621}," add",[317,1067,1068],{"class":621}," pantheon",[317,1070,1071],{"class":323}," $PANTHEON_GIT_URL\n",[317,1073,1074],{"class":319,"line":710},[317,1075,981],{"emptyLinePlaceholder":980},[317,1077,1079],{"class":319,"line":1078},15,[317,1080,1081],{"class":661},"# Push the merge request source branch to Pantheon\n",[317,1083,1085,1087,1090,1092,1095,1098,1101],{"class":319,"line":1084},16,[317,1086,1040],{"class":1015},[317,1088,1089],{"class":621}," push",[317,1091,1068],{"class":621},[317,1093,1094],{"class":323}," $CI_COMMIT_REF_NAME",[317,1096,1097],{"class":621},":",[317,1099,1100],{"class":323},"$PANTHEON_ENV ",[317,1102,1103],{"class":1022},"--force\n",[317,1105,1107],{"class":319,"line":1106},17,[317,1108,981],{"emptyLinePlaceholder":980},[317,1110,1112],{"class":319,"line":1111},18,[317,1113,1114],{"class":661},"# Create a function for determining if a multidev exists\n",[317,1116,1118,1121],{"class":319,"line":1117},19,[317,1119,1120],{"class":1015},"TERMINUS_DOES_MULTIDEV_EXIST",[317,1122,1123],{"class":323},"()\n",[317,1125,1127],{"class":319,"line":1126},20,[317,1128,1129],{"class":323},"{\n",[317,1131,1133],{"class":319,"line":1132},21,[317,1134,1135],{"class":661},"    # Stash a list of Pantheon multidev environments\n",[317,1137,1139,1142,1144,1147,1149,1152,1154,1157,1160,1163],{"class":319,"line":1138},22,[317,1140,1141],{"class":323},"    PANTHEON_MULTIDEV_LIST",[317,1143,998],{"class":991},[317,1145,1146],{"class":621},"\"$(",[317,1148,1016],{"class":1015},[317,1150,1151],{"class":621}," multidev:list ${",[317,1153,489],{"class":323},[317,1155,1156],{"class":621},"} ",[317,1158,1159],{"class":1022},"--format=list",[317,1161,1162],{"class":1022}," --field=id",[317,1164,1165],{"class":621},")\"\n",[317,1167,1169],{"class":319,"line":1168},23,[317,1170,981],{"emptyLinePlaceholder":980},[317,1172,1174,1177,1180,1183,1186,1189],{"class":319,"line":1173},24,[317,1175,1176],{"class":991},"    while",[317,1178,1179],{"class":1022}," read",[317,1181,1182],{"class":1022}," -r",[317,1184,1185],{"class":621}," multiDev",[317,1187,1188],{"class":323},"; ",[317,1190,1191],{"class":991},"do\n",[317,1193,1195,1198,1201,1204,1207,1210,1213,1216,1219,1222],{"class":319,"line":1194},25,[317,1196,1197],{"class":991},"        if",[317,1199,1200],{"class":323}," [[ ",[317,1202,1203],{"class":621},"\"${",[317,1205,1206],{"class":323},"multiDev",[317,1208,1209],{"class":621},"}\"",[317,1211,1212],{"class":991}," ==",[317,1214,1215],{"class":621}," \"",[317,1217,1218],{"class":1022},"$1",[317,1220,1221],{"class":621},"\"",[317,1223,1224],{"class":323}," ]]\n",[317,1226,1228],{"class":319,"line":1227},26,[317,1229,1230],{"class":991},"        then\n",[317,1232,1234,1237,1240],{"class":319,"line":1233},27,[317,1235,1236],{"class":991},"            return",[317,1238,1239],{"class":1022}," 0",[317,1241,1242],{"class":323},";\n",[317,1244,1246],{"class":319,"line":1245},28,[317,1247,1248],{"class":991},"        fi\n",[317,1250,1252,1255,1258,1260,1263],{"class":319,"line":1251},29,[317,1253,1254],{"class":991},"    done",[317,1256,1257],{"class":991}," \u003C\u003C\u003C",[317,1259,1215],{"class":621},[317,1261,1262],{"class":323},"$PANTHEON_MULTIDEV_LIST",[317,1264,1265],{"class":621},"\"\n",[317,1267,1269],{"class":319,"line":1268},30,[317,1270,981],{"emptyLinePlaceholder":980},[317,1272,1274,1277,1280],{"class":319,"line":1273},31,[317,1275,1276],{"class":991},"    return",[317,1278,1279],{"class":1022}," 1",[317,1281,1242],{"class":323},[317,1283,1285],{"class":319,"line":1284},32,[317,1286,1287],{"class":323},"}\n",[317,1289,1291],{"class":319,"line":1290},33,[317,1292,981],{"emptyLinePlaceholder":980},[317,1294,1296],{"class":319,"line":1295},34,[317,1297,1298],{"class":661},"# If the mutltidev doesn't exist\n",[317,1300,1302,1305,1308,1311],{"class":319,"line":1301},35,[317,1303,1304],{"class":991},"if",[317,1306,1307],{"class":991}," !",[317,1309,1310],{"class":1015}," TERMINUS_DOES_MULTIDEV_EXIST",[317,1312,1313],{"class":323}," $PANTHEON_ENV\n",[317,1315,1317],{"class":319,"line":1316},36,[317,1318,1319],{"class":991},"then\n",[317,1321,1323],{"class":319,"line":1322},37,[317,1324,1325],{"class":661},"    # Create it with Terminus\n",[317,1327,1329,1332,1335,1338],{"class":319,"line":1328},38,[317,1330,1331],{"class":1022},"    echo",[317,1333,1334],{"class":621}," \"No multidev for ",[317,1336,1337],{"class":323},"$PANTHEON_ENV",[317,1339,1340],{"class":621}," found, creating one...\"\n",[317,1342,1344,1347,1350,1353,1356],{"class":319,"line":1343},39,[317,1345,1346],{"class":1015},"    terminus",[317,1348,1349],{"class":621}," multidev:create",[317,1351,1352],{"class":323}," $PANTHEON_SITE",[317,1354,1355],{"class":621},".dev",[317,1357,1313],{"class":323},[317,1359,1361],{"class":319,"line":1360},40,[317,1362,1363],{"class":991},"else\n",[317,1365,1367,1369,1372,1374],{"class":319,"line":1366},41,[317,1368,1331],{"class":1022},[317,1370,1371],{"class":621}," \"The multidev ",[317,1373,1337],{"class":323},[317,1375,1376],{"class":621}," already exists, skipping creating it...\"\n",[317,1378,1380],{"class":319,"line":1379},42,[317,1381,1382],{"class":991},"fi\n",[12,1384,1385,1386,1389,1390,1395,1396,1398,1399,1401],{},"The script is in the ",[119,1387,1388],{},"private"," directory as ",[16,1391,1394],{"href":1392,"rel":1393},"https://pantheon.io/docs/private-paths/",[],"it is not web accessible on Pantheon",". Now that we have a script for our multidev logic, update the ",[119,1397,607],{}," section of ",[119,1400,305],{}," so that it looks like this:",[308,1403,1405],{"className":597,"code":1404,"language":599,"meta":313,"style":313},"deploy:multidev:\n  stage: deploy\n  environment:\n    name: multidev/mr-$CI_MERGE_REQUEST_IID\n    url: https://mr-$CI_MERGE_REQUEST_IID-$PANTHEON_SITE.pantheonsite.io/\n  script:\n    # Run the multidev deploy script\n    - \"/bin/bash ./private/multidev-deploy.sh\"\n  only:\n    - merge_requests\n",[119,1406,1407,1413,1421,1427,1435,1443,1449,1454,1461,1467],{"__ignoreMap":313},[317,1408,1409,1411],{"class":319,"line":320},[317,1410,607],{"class":606},[317,1412,610],{"class":323},[317,1414,1415,1417,1419],{"class":319,"line":327},[317,1416,615],{"class":606},[317,1418,618],{"class":323},[317,1420,622],{"class":621},[317,1422,1423,1425],{"class":319,"line":334},[317,1424,627],{"class":606},[317,1426,610],{"class":323},[317,1428,1429,1431,1433],{"class":319,"line":344},[317,1430,634],{"class":606},[317,1432,618],{"class":323},[317,1434,639],{"class":621},[317,1436,1437,1439,1441],{"class":319,"line":352},[317,1438,644],{"class":606},[317,1440,618],{"class":323},[317,1442,649],{"class":621},[317,1444,1445,1447],{"class":319,"line":360},[317,1446,654],{"class":606},[317,1448,610],{"class":323},[317,1450,1451],{"class":319,"line":368},[317,1452,1453],{"class":661},"    # Run the multidev deploy script\n",[317,1455,1456,1458],{"class":319,"line":665},[317,1457,668],{"class":323},[317,1459,1460],{"class":621},"\"/bin/bash ./private/multidev-deploy.sh\"\n",[317,1462,1463,1465],{"class":319,"line":674},[317,1464,705],{"class":606},[317,1466,610],{"class":323},[317,1468,1469,1471],{"class":319,"line":680},[317,1470,668],{"class":323},[317,1472,715],{"class":621},[12,1474,1475,1476,1479,1480,1482,1483,1485],{},"In order to make sure our jobs run with the custom image created earlier, add an ",[119,1477,1478],{},"image"," definition with the registry URL to ",[119,1481,305],{},". My complete ",[119,1484,305],{}," file now looks like this:",[308,1487,1490],{"className":1488,"code":1489,"language":479,"meta":313},[477],"image: registry.gitlab.com/ataylorme/pantheon-gitlab-blog-demo:latest\n\nstages:\n- deploy\n\nbefore_script:\n  # See https://docs.gitlab.com/ci/ssh_keys/\n  - eval $(ssh-agent -s)\n  - echo \"$SSH_PRIVATE_KEY\" | tr -d '\\r' | ssh-add - > /dev/null\n  - mkdir -p $HOME/.ssh && echo \"StrictHostKeyChecking no\" >> \"$HOME/.ssh/config\"\n  - git config --global user.email \"$GITLAB_USER_EMAIL\"\n  - git config --global user.name \"Gitlab CI\"\n\ndeploy:dev:\n  stage: deploy\n  environment:\n    name: dev\n    url: https://dev-$PANTHEON_SITE.pantheonsite.io/\n  script:\n    - git remote add pantheon $PANTHEON_GIT_URL\n    - git push pantheon master --force\n  only:\n    - master\n\ndeploy:multidev:\n  stage: deploy\n  environment:\n    name: multidev/mr-$CI_MERGE_REQUEST_IID\n    url: https://mr-$CI_MERGE_REQUEST_IID-$PANTHEON_SITE.pantheonsite.io/\n  script:\n    # Run the multidev deploy script\n    - \"/bin/bash ./private/multidev-deploy.sh\"\n  only:\n    - merge_requests\n",[119,1491,1489],{"__ignoreMap":313},[12,1493,1494,1495,810,1497,1499],{},"Add, commit, and push ",[119,1496,962],{},[119,1498,305],{},". Now, head back to GitLab and wait for the CI/CD job to finish. The multidev creation takes a few minutes, so be patient.",[12,1501,1502,1503,1505],{},"When it is finished, go check out the multidev list on Pantheon. Voila! The ",[119,1504,575],{}," multidev is there.",[12,1507,1508],{},[172,1509],{"alt":575,"src":1510},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398819/blog/Content%20Images/pantheon-mr-2-multidev.png",[71,1512,1514],{"id":1513},"conclusion","Conclusion",[12,1516,1517],{},"Opening a merge request and having an environment spin up automatically is a powerful addition to any team's workflow.",[12,1519,1520],{},"By leveraging the powerful tools offered by both GitLab and Pantheon, we can connect GitLab to Pantheon in an automated fashion.",[12,1522,1523],{},"Since we used GitLab CI/CD, there is room for growth in our workflow as well. Here are a few ideas to get you started:",[1525,1526,1527,1531,1534,1537],"ul",{},[1528,1529,1530],"li",{},"Add a build step.",[1528,1532,1533],{},"Add automated testing.",[1528,1535,1536],{},"Add a job to enforce coding standards.",[1528,1538,1539,1540,227],{},"Add ",[16,1541,1544],{"href":1542,"rel":1543},"https://docs.gitlab.com/user/application_security/dast/",[],"dynamic application security testing",[12,1546,1547],{},"Drop me a line with any thoughts you have on GitLab, Pantheon, and automation.",[12,1549,1550,1551,1556],{},"P.S. Did you know Terminus, Pantheon’s command line tool, ",[16,1552,1555],{"href":1553,"rel":1554},"https://pantheon.io/docs/terminus/plugins/",[],"is extendable via plugins","?",[12,1558,1559,1560,1565,1566,1569],{},"Over at Pantheon, we have been hard at work on version 2 of our ",[16,1561,1564],{"href":1562,"rel":1563},"https://github.com/pantheon-systems/terminus-build-tools-plugin/",[],"Terminus Build Tools Plugin",", complete with GitLab support. If you don't want to do all this setup for each project, I encourage you to check it out and help us test the v2 beta. The terminus ",[119,1567,1568],{},"build:project:create"," command just needs a Pantheon token and GitLab token. From there, it will spin up one of our example projects, complete with Composer and automated testing, create a new project on GitLab, a new site on Pantheon, and connect the two by setting up environment variables and SSH keys.",[23,1571,1573],{"id":1572},"about-the-guest-author","About the guest author",[12,1575,1576,1577,227],{},"Andrew Taylor is a Developer Programs Engineer at ",[16,1578,20],{"href":1579,"rel":1580},"https://pantheon.io/",[],[1582,1583,1584],"style",{},"html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .surfw, html code.shiki .surfw{--shiki-default:#005CC5;--shiki-default-font-weight:bold}html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}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 .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}",{"title":313,"searchDepth":327,"depth":327,"links":1586},[1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599],{"id":25,"depth":334,"text":26},{"id":43,"depth":334,"text":44},{"id":73,"depth":327,"text":74},{"id":113,"depth":327,"text":114},{"id":140,"depth":327,"text":141},{"id":178,"depth":327,"text":179},{"id":273,"depth":327,"text":274},{"id":444,"depth":327,"text":445},{"id":505,"depth":327,"text":506},{"id":536,"depth":327,"text":537},{"id":829,"depth":327,"text":830},{"id":880,"depth":327,"text":881},{"id":1513,"depth":327,"text":1514,"children":1600},[1601],{"id":1572,"depth":334,"text":1573},"engineering","2019-03-26","Our guest author, a Developer Programs Engineer at Pantheon, shares how to automate WordPress deployments using GitLab CI/CD.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749680516/Blog/Hero%20Images/gitlab-pantheon.png",{},"/en-us/blog/connecting-gitlab-and-pantheon-streamline-wordpress-drupal-workflows",{"title":1612,"description":1604,"ogTitle":1612,"ogDescription":1604,"noIndex":1607,"ogImage":1608,"ogUrl":1613,"ogSiteName":1614,"ogType":1615,"canonicalUrls":1613},"Streamlining Drupal and WordPress with GitLab and Pantheon","https://about.gitlab.com/blog/connecting-gitlab-and-pantheon-streamline-wordpress-drupal-workflows","https://about.gitlab.com","article","connecting-gitlab-and-pantheon-streamline-wordpress-drupal-workflows","en-us/blog/connecting-gitlab-and-pantheon-streamline-wordpress-drupal-workflows",[1619,1620,1621,1622],"DevOps","integrations","community","workflow","BlogPost","Dgz6WfZJK71RFGNMF3IcYVjkcm1wLQJMi3pgTNR84HQ",{"logo":1626,"freeTrial":1630,"sales":1635,"login":1640,"items":1645,"search":1970,"minimal":2001,"duo":2020,"switchNav":2029,"pricingDeployment":2040},{"config":1627},{"href":52,"dataGaName":1628,"dataGaLocation":1629},"gitlab logo","header",{"text":1631,"config":1632},"Get free trial",{"href":1633,"dataGaName":1634,"dataGaLocation":1629},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1636,"config":1637},"Request a demo",{"href":1638,"dataGaName":1639,"dataGaLocation":1629},"/sales/?contact-topic=request-demo","sales",{"text":1641,"config":1642},"Sign in",{"href":1643,"dataGaName":1644,"dataGaLocation":1629},"https://gitlab.com/users/sign_in/","sign in",[1646,1675,1775,1780,1892,1948],{"text":1647,"config":1648,"menu":1650},"Platform",{"dataNavLevelOne":1649},"platform",{"type":1651,"columns":1652},"cards",[1653,1659,1667],{"title":1647,"description":1654,"link":1655},"The intelligent orchestration platform for DevSecOps",{"text":1656,"config":1657},"Explore our Platform",{"href":1658,"dataGaName":1649,"dataGaLocation":1629},"/platform/",{"title":1660,"description":1661,"link":1662},"GitLab Duo Agent Platform","Agentic AI for the entire software lifecycle",{"text":1663,"config":1664},"Meet GitLab Duo",{"href":1665,"dataGaName":1666,"dataGaLocation":1629},"/gitlab-duo-agent-platform/","gitlab duo agent platform",{"title":1668,"description":1669,"link":1670},"Why GitLab","See the top reasons enterprises choose GitLab",{"text":1671,"config":1672},"Learn more",{"href":1673,"dataGaName":1674,"dataGaLocation":1629},"/why-gitlab/","why gitlab",{"text":1676,"left":980,"config":1677,"menu":1679},"Product",{"dataNavLevelOne":1678},"solutions",{"type":1680,"link":1681,"columns":1685,"feature":1754},"lists",{"text":1682,"config":1683},"View all Solutions",{"href":1684,"dataGaName":1678,"dataGaLocation":1629},"/solutions/",[1686,1710,1733],{"title":1687,"description":1688,"link":1689,"items":1694},"Automation","CI/CD and automation to accelerate deployment",{"config":1690},{"icon":1691,"href":1692,"dataGaName":1693,"dataGaLocation":1629},"AutomatedCodeAlt","/solutions/delivery-automation/","automated software delivery",[1695,1699,1702,1706],{"text":1696,"config":1697},"CI/CD",{"href":1698,"dataGaLocation":1629,"dataGaName":1696},"/solutions/continuous-integration/",{"text":1660,"config":1700},{"href":1665,"dataGaLocation":1629,"dataGaName":1701},"gitlab duo agent platform - product menu",{"text":1703,"config":1704},"Source Code Management",{"href":1705,"dataGaLocation":1629,"dataGaName":1703},"/solutions/source-code-management/",{"text":1707,"config":1708},"Automated Software Delivery",{"href":1692,"dataGaLocation":1629,"dataGaName":1709},"Automated software delivery",{"title":1711,"description":1712,"link":1713,"items":1718},"Security","Deliver code faster without compromising security",{"config":1714},{"href":1715,"dataGaName":1716,"dataGaLocation":1629,"icon":1717},"/solutions/application-security-testing/","security and compliance","ShieldCheckLight",[1719,1723,1728],{"text":1720,"config":1721},"Application Security Testing",{"href":1715,"dataGaName":1722,"dataGaLocation":1629},"Application security testing",{"text":1724,"config":1725},"Software Supply Chain Security",{"href":1726,"dataGaLocation":1629,"dataGaName":1727},"/solutions/supply-chain/","Software supply chain security",{"text":1729,"config":1730},"Software Compliance",{"href":1731,"dataGaName":1732,"dataGaLocation":1629},"/solutions/software-compliance/","software compliance",{"title":1734,"link":1735,"items":1740},"Measurement",{"config":1736},{"icon":1737,"href":1738,"dataGaName":1739,"dataGaLocation":1629},"DigitalTransformation","/solutions/visibility-measurement/","visibility and measurement",[1741,1745,1749],{"text":1742,"config":1743},"Visibility & Measurement",{"href":1738,"dataGaLocation":1629,"dataGaName":1744},"Visibility and Measurement",{"text":1746,"config":1747},"Value Stream Management",{"href":1748,"dataGaLocation":1629,"dataGaName":1746},"/solutions/value-stream-management/",{"text":1750,"config":1751},"Analytics & Insights",{"href":1752,"dataGaLocation":1629,"dataGaName":1753},"/solutions/analytics-and-insights/","Analytics and insights",{"title":1755,"type":1680,"items":1756},"GitLab for",[1757,1763,1769],{"text":1758,"config":1759},"Enterprise",{"icon":1760,"href":1761,"dataGaLocation":1629,"dataGaName":1762},"Building","/enterprise/","enterprise",{"text":1764,"config":1765},"Small Business",{"icon":1766,"href":1767,"dataGaLocation":1629,"dataGaName":1768},"Work","/small-business/","small business",{"text":1770,"config":1771},"Public Sector",{"icon":1772,"href":1773,"dataGaLocation":1629,"dataGaName":1774},"Organization","/solutions/public-sector/","public sector",{"text":1776,"config":1777},"Pricing",{"href":1778,"dataGaName":1779,"dataGaLocation":1629,"dataNavLevelOne":1779},"/pricing/","pricing",{"text":1781,"config":1782,"menu":1784},"Resources",{"dataNavLevelOne":1783},"resources",{"type":1680,"link":1785,"columns":1789,"feature":1881},{"text":1786,"config":1787},"View all resources",{"href":1788,"dataGaName":1783,"dataGaLocation":1629},"/resources/",[1790,1822,1849],{"title":1791,"items":1792},"Getting started",[1793,1798,1803,1808,1813,1818],{"text":1794,"config":1795},"Install",{"href":1796,"dataGaName":1797,"dataGaLocation":1629},"/install/","install",{"text":1799,"config":1800},"Quick start guides",{"href":1801,"dataGaName":1802,"dataGaLocation":1629},"/get-started/","quick setup checklists",{"text":1804,"config":1805},"Learn",{"href":1806,"dataGaLocation":1629,"dataGaName":1807},"https://university.gitlab.com/","learn",{"text":1809,"config":1810},"Product documentation",{"href":1811,"dataGaName":1812,"dataGaLocation":1629},"https://docs.gitlab.com/","product documentation",{"text":1814,"config":1815},"Best practice videos",{"href":1816,"dataGaName":1817,"dataGaLocation":1629},"/getting-started-videos/","best practice videos",{"text":1819,"config":1820},"Integrations",{"href":1821,"dataGaName":1620,"dataGaLocation":1629},"/integrations/",{"title":1823,"items":1824},"Discover",[1825,1830,1835,1840,1844],{"text":1826,"config":1827},"Customer success stories",{"href":1828,"dataGaName":1829,"dataGaLocation":1629},"/customers/","customer success stories",{"text":1831,"config":1832},"Blog",{"href":1833,"dataGaName":1834,"dataGaLocation":1629},"/blog/","blog",{"text":1836,"config":1837},"Demo Hub",{"href":1838,"dataGaName":1839,"dataGaLocation":1629},"/demo-hub/","demo hub",{"text":1841,"config":1842},"The Source",{"href":1843,"dataGaName":1834,"dataGaLocation":1629},"/the-source/",{"text":1845,"config":1846},"Remote",{"href":1847,"dataGaName":1848,"dataGaLocation":1629},"https://handbook.gitlab.com/handbook/company/culture/all-remote/","remote",{"title":1850,"items":1851},"Connect",[1852,1857,1862,1866,1871,1876],{"text":1853,"config":1854},"GitLab Services",{"href":1855,"dataGaName":1856,"dataGaLocation":1629},"/services/","services",{"text":1858,"config":1859},"Contribute",{"href":1860,"dataGaName":1861,"dataGaLocation":1629},"https://contributors.gitlab.com","contribute",{"text":1863,"config":1864},"Community",{"href":1865,"dataGaName":1621,"dataGaLocation":1629},"/community/",{"text":1867,"config":1868},"Forum",{"href":1869,"dataGaName":1870,"dataGaLocation":1629},"https://forum.gitlab.com/","forum",{"text":1872,"config":1873},"Events",{"href":1874,"dataGaName":1875,"dataGaLocation":1629},"/events/","events",{"text":1877,"config":1878},"Partners",{"href":1879,"dataGaName":1880,"dataGaLocation":1629},"/partners/","partners",{"config":1882,"title":1885,"text":1886,"link":1887},{"background":1883,"textColor":1884},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1777322348/qpq8yrgn8knii57omj0c.png')","#000","What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1888,"config":1889},"Read the latest",{"href":1890,"dataGaName":1891,"dataGaLocation":1629},"/whats-new/","whats new",{"text":1893,"config":1894,"menu":1896},"Company",{"dataNavLevelOne":1895},"company",{"type":1680,"columns":1897},[1898],{"items":1899},[1900,1905,1911,1913,1918,1923,1928,1933,1938,1943],{"text":1901,"config":1902},"About",{"href":1903,"dataGaName":1904,"dataGaLocation":1629},"/company/","about",{"text":1906,"config":1907,"footerGa":1910},"Jobs",{"href":1908,"dataGaName":1909,"dataGaLocation":1629},"/jobs/","jobs",{"dataGaName":1909},{"text":1872,"config":1912},{"href":1874,"dataGaName":1875,"dataGaLocation":1629},{"text":1914,"config":1915},"Leadership",{"href":1916,"dataGaName":1917,"dataGaLocation":1629},"/company/team/e-group/","leadership",{"text":1919,"config":1920},"Handbook",{"href":1921,"dataGaName":1922,"dataGaLocation":1629},"https://handbook.gitlab.com/","handbook",{"text":1924,"config":1925},"Investor relations",{"href":1926,"dataGaName":1927,"dataGaLocation":1629},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1929,"config":1930},"Trust Center",{"href":1931,"dataGaName":1932,"dataGaLocation":1629},"/security/","trust center",{"text":1934,"config":1935},"AI Transparency Center",{"href":1936,"dataGaName":1937,"dataGaLocation":1629},"/ai-transparency-center/","ai transparency center",{"text":1939,"config":1940},"Newsletter",{"href":1941,"dataGaName":1942,"dataGaLocation":1629},"/company/contact/#contact-forms","newsletter",{"text":1944,"config":1945},"Press",{"href":1946,"dataGaName":1947,"dataGaLocation":1629},"/press/","press",{"text":1949,"config":1950,"menu":1951},"Contact us",{"dataNavLevelOne":1895},{"type":1680,"columns":1952},[1953],{"items":1954},[1955,1960,1965],{"text":1956,"config":1957},"Talk to sales",{"href":1958,"dataGaName":1959,"dataGaLocation":1629},"/sales/","talk to sales",{"text":1961,"config":1962},"Support portal",{"href":1963,"dataGaName":1964,"dataGaLocation":1629},"https://support.gitlab.com/hc/en-us","support portal",{"text":1966,"config":1967},"Customer portal",{"href":1968,"dataGaName":1969,"dataGaLocation":1629},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1971,"login":1972,"suggestions":1979},"Close",{"text":1973,"link":1974},"To search repositories and projects, login to",{"text":1975,"config":1976},"gitlab.com",{"href":1643,"dataGaName":1977,"dataGaLocation":1978},"search login","search",{"text":1980,"default":1981},"Suggestions",[1982,1984,1988,1990,1994,1998],{"text":1660,"config":1983},{"href":1665,"dataGaName":1660,"dataGaLocation":1978},{"text":1985,"config":1986},"Code Suggestions (AI)",{"href":1987,"dataGaName":1985,"dataGaLocation":1978},"/solutions/code-suggestions/",{"text":1696,"config":1989},{"href":1698,"dataGaName":1696,"dataGaLocation":1978},{"text":1991,"config":1992},"GitLab on AWS",{"href":1993,"dataGaName":1991,"dataGaLocation":1978},"/partners/technology-partners/aws/",{"text":1995,"config":1996},"GitLab on Google Cloud",{"href":1997,"dataGaName":1995,"dataGaLocation":1978},"/partners/technology-partners/google-cloud-platform/",{"text":1999,"config":2000},"Why GitLab?",{"href":1673,"dataGaName":1999,"dataGaLocation":1978},{"freeTrial":2002,"mobileIcon":2007,"desktopIcon":2012,"secondaryButton":2015},{"text":2003,"config":2004},"Start free trial",{"href":2005,"dataGaName":1634,"dataGaLocation":2006},"https://gitlab.com/-/trials/new/","nav",{"altText":2008,"config":2009},"Gitlab Icon",{"src":2010,"dataGaName":2011,"dataGaLocation":2006},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":2008,"config":2013},{"src":2014,"dataGaName":2011,"dataGaLocation":2006},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":2016,"config":2017},"Get Started",{"href":2018,"dataGaName":2019,"dataGaLocation":2006},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":2021,"mobileIcon":2025,"desktopIcon":2027},{"text":2022,"config":2023},"Learn more about GitLab Duo",{"href":1665,"dataGaName":2024,"dataGaLocation":2006},"gitlab duo",{"altText":2008,"config":2026},{"src":2010,"dataGaName":2011,"dataGaLocation":2006},{"altText":2008,"config":2028},{"src":2014,"dataGaName":2011,"dataGaLocation":2006},{"button":2030,"mobileIcon":2035,"desktopIcon":2037},{"text":2031,"config":2032},"/switch",{"href":2033,"dataGaName":2034,"dataGaLocation":2006},"#contact","switch",{"altText":2008,"config":2036},{"src":2010,"dataGaName":2011,"dataGaLocation":2006},{"altText":2008,"config":2038},{"src":2039,"dataGaName":2011,"dataGaLocation":2006},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":2041,"mobileIcon":2046,"desktopIcon":2048},{"text":2042,"config":2043},"Back to pricing",{"href":1778,"dataGaName":2044,"dataGaLocation":2006,"icon":2045},"back to pricing","GoBack",{"altText":2008,"config":2047},{"src":2010,"dataGaName":2011,"dataGaLocation":2006},{"altText":2008,"config":2049},{"src":2014,"dataGaName":2011,"dataGaLocation":2006},{"title":2051,"titleMobile":2052,"button":2053,"config":2058},"Duo Agent Platform delivers 400% ROI, per new Forrester Consulting study.","400% ROI: Forrester TEI for GitLab Duo",{"text":1671,"config":2054},{"href":2055,"dataGaName":2056,"dataGaLocation":2057},"https://about.gitlab.com/blog/gitlab-duo-agent-platform-delivers-400-percent-roi/","forrester-tei-dap-banner","global-banner",{"layout":2059,"disabled":1607},"release",{"data":2061},{"text":2062,"source":2063,"edit":2069,"contribute":2074,"config":2079,"items":2084,"minimal":2293},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"text":2064,"config":2065},"View page source",{"href":2066,"dataGaName":2067,"dataGaLocation":2068},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/","page source","footer",{"text":2070,"config":2071},"Edit this page",{"href":2072,"dataGaName":2073,"dataGaLocation":2068},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/content/","web ide",{"text":2075,"config":2076},"Please contribute",{"href":2077,"dataGaName":2078,"dataGaLocation":2068},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/CONTRIBUTING.md/","please contribute",{"twitter":2080,"facebook":2081,"youtube":2082,"linkedin":2083},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[2085,2132,2185,2229,2261],{"title":1776,"links":2086,"subMenu":2101},[2087,2091,2096],{"text":2088,"config":2089},"View plans",{"href":1778,"dataGaName":2090,"dataGaLocation":2068},"view plans",{"text":2092,"config":2093},"Why Premium?",{"href":2094,"dataGaName":2095,"dataGaLocation":2068},"/pricing/premium/","why premium",{"text":2097,"config":2098},"Why Ultimate?",{"href":2099,"dataGaName":2100,"dataGaLocation":2068},"/pricing/ultimate/","why ultimate",[2102],{"title":2103,"links":2104},"Contact Us",[2105,2108,2110,2112,2117,2122,2127],{"text":2106,"config":2107},"Contact sales",{"href":1958,"dataGaName":1639,"dataGaLocation":2068},{"text":1961,"config":2109},{"href":1963,"dataGaName":1964,"dataGaLocation":2068},{"text":1966,"config":2111},{"href":1968,"dataGaName":1969,"dataGaLocation":2068},{"text":2113,"config":2114},"Status",{"href":2115,"dataGaName":2116,"dataGaLocation":2068},"https://status.gitlab.com/","status",{"text":2118,"config":2119},"Terms of use",{"href":2120,"dataGaName":2121,"dataGaLocation":2068},"/terms/","terms of use",{"text":2123,"config":2124},"Privacy statement",{"href":2125,"dataGaName":2126,"dataGaLocation":2068},"/privacy/","privacy statement",{"text":2128,"config":2129},"Cookie preferences",{"dataGaName":2130,"dataGaLocation":2068,"id":2131,"isOneTrustButton":980},"cookie preferences","ot-sdk-btn",{"title":1676,"links":2133,"subMenu":2142},[2134,2138],{"text":2135,"config":2136},"DevSecOps platform",{"href":1658,"dataGaName":2137,"dataGaLocation":2068},"devsecops platform",{"text":2139,"config":2140},"AI-Assisted Development",{"href":1665,"dataGaName":2141,"dataGaLocation":2068},"ai-assisted development",[2143],{"title":2144,"links":2145},"Topics",[2146,2151,2156,2160,2165,2170,2175,2180],{"text":2147,"config":2148},"CICD",{"href":2149,"dataGaName":2150,"dataGaLocation":2068},"/topics/ci-cd/","cicd",{"text":2152,"config":2153},"GitOps",{"href":2154,"dataGaName":2155,"dataGaLocation":2068},"/topics/gitops/","gitops",{"text":1619,"config":2157},{"href":2158,"dataGaName":2159,"dataGaLocation":2068},"/topics/devops/","devops",{"text":2161,"config":2162},"Version Control",{"href":2163,"dataGaName":2164,"dataGaLocation":2068},"/topics/version-control/","version control",{"text":2166,"config":2167},"DevSecOps",{"href":2168,"dataGaName":2169,"dataGaLocation":2068},"/topics/devsecops/","devsecops",{"text":2171,"config":2172},"Cloud Native",{"href":2173,"dataGaName":2174,"dataGaLocation":2068},"/topics/cloud-native/","cloud native",{"text":2176,"config":2177},"AI for Coding",{"href":2178,"dataGaName":2179,"dataGaLocation":2068},"/topics/devops/ai-for-coding/","ai for coding",{"text":2181,"config":2182},"Agentic AI",{"href":2183,"dataGaName":2184,"dataGaLocation":2068},"/topics/agentic-ai/","agentic ai",{"title":2186,"links":2187},"Solutions",[2188,2190,2192,2197,2201,2204,2208,2211,2213,2216,2219,2224],{"text":1720,"config":2189},{"href":1715,"dataGaName":1720,"dataGaLocation":2068},{"text":1709,"config":2191},{"href":1692,"dataGaName":1693,"dataGaLocation":2068},{"text":2193,"config":2194},"Agile development",{"href":2195,"dataGaName":2196,"dataGaLocation":2068},"/solutions/agile-delivery/","agile delivery",{"text":2198,"config":2199},"SCM",{"href":1705,"dataGaName":2200,"dataGaLocation":2068},"source code management",{"text":2147,"config":2202},{"href":1698,"dataGaName":2203,"dataGaLocation":2068},"continuous integration & delivery",{"text":2205,"config":2206},"Value stream management",{"href":1748,"dataGaName":2207,"dataGaLocation":2068},"value stream management",{"text":2152,"config":2209},{"href":2210,"dataGaName":2155,"dataGaLocation":2068},"/solutions/gitops/",{"text":1758,"config":2212},{"href":1761,"dataGaName":1762,"dataGaLocation":2068},{"text":2214,"config":2215},"Small business",{"href":1767,"dataGaName":1768,"dataGaLocation":2068},{"text":2217,"config":2218},"Public sector",{"href":1773,"dataGaName":1774,"dataGaLocation":2068},{"text":2220,"config":2221},"Education",{"href":2222,"dataGaName":2223,"dataGaLocation":2068},"/solutions/education/","education",{"text":2225,"config":2226},"Financial services",{"href":2227,"dataGaName":2228,"dataGaLocation":2068},"/solutions/finance/","financial services",{"title":1781,"links":2230},[2231,2233,2235,2237,2240,2242,2245,2247,2249,2251,2253,2255,2257,2259],{"text":1794,"config":2232},{"href":1796,"dataGaName":1797,"dataGaLocation":2068},{"text":1799,"config":2234},{"href":1801,"dataGaName":1802,"dataGaLocation":2068},{"text":1804,"config":2236},{"href":1806,"dataGaName":1807,"dataGaLocation":2068},{"text":1809,"config":2238},{"href":1811,"dataGaName":2239,"dataGaLocation":2068},"docs",{"text":1831,"config":2241},{"href":1833,"dataGaName":1834,"dataGaLocation":2068},{"text":2243,"config":2244},"What's new",{"href":1890,"dataGaName":1891,"dataGaLocation":2068},{"text":1826,"config":2246},{"href":1828,"dataGaName":1829,"dataGaLocation":2068},{"text":1845,"config":2248},{"href":1847,"dataGaName":1848,"dataGaLocation":2068},{"text":1853,"config":2250},{"href":1855,"dataGaName":1856,"dataGaLocation":2068},{"text":1858,"config":2252},{"href":1860,"dataGaName":1861,"dataGaLocation":2068},{"text":1863,"config":2254},{"href":1865,"dataGaName":1621,"dataGaLocation":2068},{"text":1867,"config":2256},{"href":1869,"dataGaName":1870,"dataGaLocation":2068},{"text":1872,"config":2258},{"href":1874,"dataGaName":1875,"dataGaLocation":2068},{"text":1877,"config":2260},{"href":1879,"dataGaName":1880,"dataGaLocation":2068},{"title":1893,"links":2262},[2263,2265,2267,2269,2271,2273,2277,2282,2284,2286,2288],{"text":1901,"config":2264},{"href":1903,"dataGaName":1895,"dataGaLocation":2068},{"text":1906,"config":2266},{"href":1908,"dataGaName":1909,"dataGaLocation":2068},{"text":1914,"config":2268},{"href":1916,"dataGaName":1917,"dataGaLocation":2068},{"text":1919,"config":2270},{"href":1921,"dataGaName":1922,"dataGaLocation":2068},{"text":1924,"config":2272},{"href":1926,"dataGaName":1927,"dataGaLocation":2068},{"text":2274,"config":2275},"Sustainability",{"href":2276,"dataGaName":2274,"dataGaLocation":2068},"/sustainability/",{"text":2278,"config":2279},"Diversity, inclusion and belonging (DIB)",{"href":2280,"dataGaName":2281,"dataGaLocation":2068},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1929,"config":2283},{"href":1931,"dataGaName":1932,"dataGaLocation":2068},{"text":1939,"config":2285},{"href":1941,"dataGaName":1942,"dataGaLocation":2068},{"text":1944,"config":2287},{"href":1946,"dataGaName":1947,"dataGaLocation":2068},{"text":2289,"config":2290},"Modern Slavery Transparency Statement",{"href":2291,"dataGaName":2292,"dataGaLocation":2068},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":2294},[2295,2298,2301],{"text":2296,"config":2297},"Terms",{"href":2120,"dataGaName":2121,"dataGaLocation":2068},{"text":2299,"config":2300},"Cookies",{"dataGaName":2130,"dataGaLocation":2068,"id":2131,"isOneTrustButton":980},{"text":2302,"config":2303},"Privacy",{"href":2125,"dataGaName":2126,"dataGaLocation":2068},[2305],{"id":2306,"title":7,"body":1606,"config":2307,"content":2309,"description":1606,"extension":2313,"meta":2314,"navigation":980,"path":2315,"seo":2316,"stem":2317,"__hash__":2318},"blogAuthors/en-us/blog/authors/andrew-taylor.yml",{"template":2308},"BlogAuthor",{"name":7,"config":2310},{"headshot":2311,"ctfId":2312},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659488/Blog/Author%20Headshots/gitlab-logo-extra-whitespace.png","Andrew-Taylor","yml",{},"/en-us/blog/authors/andrew-taylor",{},"en-us/blog/authors/andrew-taylor","GjQzem-vUYnTpF17_uK5hZqMnTZwbeFYrSth6MWeOkg",[2320,2329,2337],{"title":2321,"description":2322,"heroImage":2323,"category":1602,"date":2324,"authors":2325,"slug":2328,"externalUrl":1606},"Confidential AI for GitLab Self-Hosted","Give developers AI coding agents in GitLab Duo without source code leaving a hardware-encrypted boundary — no GPUs needed.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1773866173/vte9qh8rriznvyclhkes.png","2026-08-06",[2326,2327],"Mathias Ewald","Martin Paloncy, Edgeless Systems","confidential-ai-for-gitlab-self-hosted",{"title":2330,"description":2331,"heroImage":2332,"category":1602,"date":2333,"authors":2334,"slug":2336,"externalUrl":1606},"Green DevOps: Why carbon measurement belongs in your CI/CD pipeline","CI/CD pipelines have a hidden carbon cost. Here's why measuring it matters, and how you can get started with Eco CI and Carmen in GitLab.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1765809212/noh0mdfn9o94ry9ykura.png","2026-07-09",[2335],"Lysanne Pinto","green-devops-carbon-measurement-cicd-pipeline",{"title":2338,"description":2339,"heroImage":2340,"category":1602,"date":2341,"authors":2342,"slug":2344,"externalUrl":1606},"How to build CI/CD observability at scale","This practical guide to GitLab pipeline analytics helps self-managed users gain operational insights using Prometheus and Grafana.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-04-28",[2343],"Paul Meresanu","how-to-build-ci-cd-observability-at-scale",{"promotions":2346},[2347,2361,2373,2385],{"id":2348,"categories":2349,"header":2351,"text":2352,"button":2353,"image":2358},"ai-modernization",[2350],"ai","Is AI achieving its promise at scale?","Quiz will take 5 minutes or less",{"text":2354,"config":2355},"Get your AI maturity score",{"href":2356,"dataGaName":2357,"dataGaLocation":1834},"/assessments/ai-modernization-assessment/","modernization assessment",{"config":2359},{"src":2360},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/qix0m7kwnd8x2fh1zq49.png",{"id":2362,"categories":2363,"header":2365,"text":2352,"button":2366,"image":2370},"devops-modernization",[2364,2169],"product","Are you just managing tools or shipping innovation?",{"text":2367,"config":2368},"Get your DevOps maturity score",{"href":2369,"dataGaName":2357,"dataGaLocation":1834},"/assessments/devops-modernization-assessment/",{"config":2371},{"src":2372},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138785/eg818fmakweyuznttgid.png",{"id":2374,"categories":2375,"header":2377,"text":2352,"button":2378,"image":2382},"security-modernization",[2376],"security","Are you trading speed for security?",{"text":2379,"config":2380},"Get your security maturity score",{"href":2381,"dataGaName":2357,"dataGaLocation":1834},"/assessments/security-modernization-assessment/",{"config":2383},{"src":2384},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/p4pbqd9nnjejg5ds6mdk.png",{"id":2386,"paths":2387,"header":2390,"text":2391,"button":2392,"image":2397},"github-azure-migration",[2388,2389],"migration-from-azure-devops-to-gitlab","integrating-azure-devops-scm-and-gitlab","Is your team ready for GitHub's Azure move?","GitHub is already rebuilding around Azure. Find out what it means for you.",{"text":2393,"config":2394},"See how GitLab compares to GitHub",{"href":2395,"dataGaName":2396,"dataGaLocation":1834},"/compare/gitlab-vs-github/github-azure-migration/","github azure migration",{"config":2398},{"src":2372},{"header":2400,"blurb":2401,"button":2402,"secondaryButton":2407},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":2403,"config":2404},"Get your free trial",{"href":2405,"dataGaName":1634,"dataGaLocation":2406},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":2106,"config":2408},{"href":1958,"dataGaName":1639,"dataGaLocation":2406},1786803767573]