<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # GitLab CI/CD > 原文:[https://docs.gitlab.com/ee/ci/README.html](https://docs.gitlab.com/ee/ci/README.html) * [Overview](#overview) * [Getting started](#getting-started) * [Concepts](#concepts) * [Configuration](#configuration) * [Feature set](#feature-set) * [Examples](#examples) * [Administration](#administration-core-only) * [References](#references) * [Why GitLab CI/CD?](#why-gitlab-cicd) * [Breaking changes](#breaking-changes) * [13.0](#130) * [12.0](#120) * [11.0](#110) * [10.0](#100) * [9.0](#90) # GitLab CI/CD[](#gitlab-cicd "Permalink") GitLab CI / CD 是 GitLab 內置的工具,用于通過[連續方法](introduction/index.html#introduction-to-cicd-methodologies)進行軟件開發: * 持續集成(CI) * 連續交付(CD) * 持續部署(CD) **注意:**開箱即用的管理系統可以將維護工具鏈所花費的時間減少 10%或更多. 觀看我們的["精通持續軟件開發"](https://about.gitlab.com/webcast/mastering-ci-cd/)網絡廣播,以了解連續方法以及 GitLab 的內置 CI 如何幫助您簡化和擴展軟件開發. ## Overview[](#overview "Permalink") 持續集成的工作原理是將小的代碼塊推送到 Git 存儲庫中托管的應用程序代碼庫中,并且每次推送時,都要運行腳本管道來構建,測試和驗證代碼更改,然后再將其合并到主分支中. 持續交付和部署包括進一步的 CI,可在每次推送到存儲庫默認分支時將應用程序部署到生產環境. 這些方法使您可以在開發周期的早期發現錯誤和錯誤,從而確保部署到生產環境的所有代碼均符合為應用程序建立的代碼標準. 有關這些方法和 GitLab CI / CD 的完整概述,請閱讀 GitLab 的 CI / CD [簡介](introduction/index.html) . GitLab CI / CD 的視頻演示: [演示:](https://www.youtube.com/watch?v=1iXFbchozdY) GitLab 的 CI / CD. <figure class="video-container"><iframe src="https://www.youtube.com/embed/1iXFbchozdY" frameborder="0" allowfullscreen=""></iframe></figure> ## Getting started[](#getting-started "Permalink") GitLab CI / CD 由位于存儲庫根目錄的名為`.gitlab-ci.yml`的文件配置. 該文件創建[管道](pipelines/index.html) ,該[管道](pipelines/index.html)運行以更改存儲庫中的代碼. 管道包含一個或多個順序運行的階段,每個階段可以包含一個或多個并行運行的作業. 這些作業(或腳本)由[GitLab Runner](https://docs.gitlab.com/runner/)代理執行. 要開始使用 GitLab CI / CD,我們建議您通讀以下文檔: * [How GitLab CI/CD works](introduction/index.html#how-gitlab-cicd-works). * [Fundamental pipeline architectures](pipelines/pipeline_architectures.html). * [GitLab CI/CD basic workflow](introduction/index.html#basic-cicd-workflow). * [Step-by-step guide for writing `.gitlab-ci.yml` for the first time](../user/project/pages/getting_started/pages_from_scratch.html). 如果您要從其他 CI / CD 工具遷移,請查看我們方便的參考資料: * [Migrating from CircleCI](migration/circleci.html) * [Migrating from Jenkins](jenkins/index.html) 您也可以使用 UI 中提供的[`.gitlab-ci.yml`模板](https://gitlab.com/gitlab-org/gitlab-foss/tree/master/lib/gitlab/ci/templates)之一來開始使用. 您可以通過創建新文件,選擇適合您的應用程序的模板并根據需要進行調整來使用它們: [![Use a `.gitlab-ci.yml` template](https://img.kancloud.cn/8c/26/8c2640fb5f4b7b6071873894e3941d99_2872x960.png)](img/add_file_template_11_10.png) 有關更廣泛的概述,請參閱《 [CI / CD 入門](quick_start/README.html)指南》. 熟悉 GitLab CI / CD 的工作原理后,請參閱[`.gitlab-ci.yml`完整參考,](yaml/README.html)以獲取可以設置和使用的所有屬性. **注意:** GitLab CI / CD 和[共享運行](runners/README.html#shared-runners)器在 GitLab.com 中啟用,并且對所有用戶可用,僅限于[用戶的管道配額](../user/gitlab_com/index.html#shared-runners) . ## Concepts[](#concepts "Permalink") GitLab CI / CD 使用許多概念來描述和運行您的構建和部署. | Concept | Description | | --- | --- | | [Pipelines](pipelines/index.html) | Structure your CI/CD process through pipelines. | | [Environment variables](variables/README.html) | 根據變量/值鍵對重用值. | | [Environments](environments/index.html) | 將您的應用程序部署到不同的環境(例如,登臺,生產). | | [Job artifacts](pipelines/job_artifacts.html) | 輸出,使用和重用作業工件. | | [Cache dependencies](caching/index.html) | 緩存您的依賴項以加快執行速度. | | [GitLab Runner](https://docs.gitlab.com/runner/) | 配置自己的 GitLab 運行程序以執行腳本. | ## Configuration[](#configuration "Permalink") GitLab CI / CD 支持多種配置選項: | Configuration | Description | | --- | --- | | [Schedule pipelines](pipelines/schedules.html) | 計劃管道以根據需要運行. | | [Custom path for `.gitlab-ci.yml`](pipelines/settings.html#custom-ci-configuration-path) | 為 CI / CD 配置文件定義自定義路徑. | | [Git submodules for CI/CD](git_submodules.html) | 配置作業以使用 Git 子模塊. | | [SSH keys for CI/CD](ssh_keys/README.html) | 在 CI 管道中使用 SSH 密鑰. | | [Pipeline triggers](triggers/README.html) | 通過 API 觸發管道. | | [Pipelines for Merge Requests](merge_request_pipelines/index.html) | 設計用于在合并請求中運行管道的管道結構. | | [Integrate with Kubernetes clusters](../user/project/clusters/index.html) | 將您的項目連接到 Google Kubernetes Engine(GKE)或現有的 Kubernetes 集群. | | [Optimize GitLab and Runner for large repositories](large_repositories/index.html) | 處理大型存儲庫的推薦策略. | | [`.gitlab-ci.yml` full reference](yaml/README.html) | 您可以在 GitLab CI / CD 中使用的所有屬性. | 請注意,某些操作只能根據[用戶](../user/permissions.html#gitlab-cicd-permissions)和[作業](../user/permissions.html#job-permissions)權限執行. ## Feature set[](#feature-set "Permalink") 使用龐大的 GitLab CI / CD 可以輕松地針對特定目的進行配置. 根據 DevOps 階段,其功能集在下表中列出. | Feature | Description | | --- | --- | | **Configure** | ? | | [Auto DevOps](../topics/autodevops/index.html) | 設置應用的整個生命周期. | | [ChatOps](chatops/README.html) | 從聊天中觸發 CI 作業,并將結果發送回通道. | | **Verify** | ? | | [Browser Performance Testing](../user/project/merge_requests/browser_performance_testing.html) | 快速確定即將發生的代碼更改對瀏覽器性能的影響. | | [Load Performance Testing](../user/project/merge_requests/load_performance_testing.html) | 快速確定未決代碼更改對服務器性能的影響. | | [CI services](services/README.html) | 將 Docker 容器與您的基本映像鏈接起來. | | [Code Quality](../user/project/merge_requests/code_quality.html) | 分析您的源代碼質量. | | [GitLab CI/CD for external repositories](ci_cd_for_external_repos/index.html) | 結合使用 GitHub 和 Bitbucket Cloud 中的存儲庫,獲得 GitLab CI / CD 的優勢. | | [Interactive Web Terminals](interactive_web_terminal/index.html) | 打開一個交互式 Web 終端以調試正在運行的作業. | | [JUnit tests](junit_test_reports.html) | 直接在合并請求中識別腳本失敗. | | [Using Docker images](docker/using_docker_images.html) | 將 GitLab 和 GitLab Runner 與 Docker 結合使用來構建和測試應用程序. | | **Release** | ? | | [Auto Deploy](../topics/autodevops/stages.html#auto-deploy) | 將您的應用程序部署到 Kubernetes 集群中的生產環境. | | [Building Docker images](docker/using_docker_build.html) | 使用 GitLab CI / CD 維護基于 Docker 的項目. | | [Canary Deployments](../user/project/canary_deployments.html) | 僅將功能部件運送到一部分吊艙中,并讓一定比例的用戶群訪問臨時部署的功能部件. | | [Deploy Boards](../user/project/deploy_boards.html) | 檢查 Kubernetes 上運行的每個 CI / CD 環境的當前運行狀況和狀態. | | [Feature Flags](../operations/feature_flags.html) | 在功能標記后部署功能. | | [GitLab Pages](../user/project/pages/index.html) | 部署靜態網站. | | [GitLab Releases](../user/project/releases/index.html) | 將發行說明添加到 Git 標簽. | | [Review Apps](review_apps/index.html) | 配置 GitLab CI / CD 預覽代碼更改. | | [Cloud deployment](cloud_deployment/index.html) | 將您的應用程序部署到主要的云提供商. | | **Secure** | ? | | [Container Scanning](../user/application_security/container_scanning/index.html) | 檢查您的 Docker 容器是否存在已知漏洞. | | [Dependency Scanning](../user/application_security/dependency_scanning/index.html) | 分析您的依賴項是否存在已知漏洞. | | [License Compliance](../user/compliance/license_compliance/index.html) | 在項目依賴項中搜索其許可證. | | [Security Test reports](../user/application_security/index.html) | 檢查應用程序漏洞. | ## Examples[](#examples "Permalink") 在" [CI 實例"](examples/README.html)頁面上查找示例項目代碼和教程,以將 GitLab CI / CD 與各種應用程序框架,語言和平臺結合使用. GitLab 還提供了[示例項目,這些項目已](https://gitlab.com/gitlab-examples)預先配置為使用 GitLab CI / CD. ## Administration[](#administration-core-only "Permalink") 作為 GitLab 管理員,您可以將 GitLab CI / CD 的默認行為更改為: * An [entire GitLab instance](../user/admin_area/settings/continuous_integration.html). * 具體項目,使用[管道設置](pipelines/settings.html) . 也可以看看: * [How to enable or disable GitLab CI/CD](enable_or_disable_ci.html). * Other [CI administration settings](../administration/index.html#continuous-integration-settings). ## References[](#references "Permalink") ### Why GitLab CI/CD?[](#why-gitlab-cicd "Permalink") 學習更多關于: * [Why you might chose GitLab CI/CD](https://about.gitlab.com/blog/2016/10/17/gitlab-ci-oohlala/). * [Reasons you might migrate from another platform](https://about.gitlab.com/blog/2016/07/22/building-our-web-app-on-gitlab-ci/). * [5 Teams that made the switch to GitLab CI/CD](https://about.gitlab.com/blog/2019/04/25/5-teams-that-made-the-switch-to-gitlab-ci-cd/) 另請參閱[為什么選擇 CI / CD?](https://docs.google.com/presentation/d/1OGgk2Tcxbpl7DJaIOzCX4Vqg3dlwfELC3u2jEeCBbDk) 介紹. ### Breaking changes[](#breaking-changes "Permalink") 隨著 GitLab CI / CD 的發展,必須進行一些重大更改. 這些是: #### 13.0[](#130 "Permalink") * [Remove Backported `os.Expand`](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4915) * [Remove Fedora 29 package support](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/16158) * [Remove macOS 32-bit support](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/25466) * [Removed `debug/jobs/list?v=1` endpoint](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/6361) * [Remove support for array of strings when defining services for Docker executor](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4922) * [Remove `--docker-services` flag on register command](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/6404) * [Remove legacy build directory caching](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4180) * [Remove `FF_USE_LEGACY_VOLUMES_MOUNTING_ORDER` feature flag](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/6581) * [Remove support for Windows Server 1803](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/6553) #### 12.0[](#120 "Permalink") * [Use refspec to clone/fetch Git repository](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4069). * [Old cache configuration](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4070). * [Old metrics server configuration](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4072). * [Remove `FF_K8S_USE_ENTRYPOINT_OVER_COMMAND`](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4073). * [Remove Linux distributions that reach EOL](https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/1130). * [Update command line API for helper images](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4013). * [Remove old `git clean` flow](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4175). #### 11.0[](#110 "Permalink") * 沒有重大變化. #### 10.0[](#100 "Permalink") * 沒有重大變化. #### 9.0[](#90 "Permalink") * [為 GitLab 9.0 重命名 CI 變量](variables/deprecated_variables.html#gitlab-90-renamed-variables) . 了解不建議使用的 CI 變量以及在 GitLab 9.0+中應使用的內容. * [新的 CI 作業權限模型](../user/project/new_ci_build_permissions_model.html) . 查看 GitLab 8.12 中的更改及其對工作的影響. 有一種新方法可以訪問作業中的 Git 子模塊和 LFS 對象.
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看