зеркало из https://github.com/github/docs.git
Merge branch 'main' into Add-GHES-to-external-groups-verisons
This commit is contained in:
Коммит
f99da66fdf
|
@ -25,7 +25,13 @@ Rather than copying and pasting from one workflow to another, you can make workf
|
|||
|
||||
Reusing workflows avoids duplication. This makes workflows easier to maintain and allows you to create new workflows more quickly by building on the work of others, just as you do with actions. Workflow reuse also promotes best practice by helping you to use workflows that are well designed, have already been tested, and have been proven to be effective. Your organization can build up a library of reusable workflows that can be centrally maintained.
|
||||
|
||||
The diagram below shows three build jobs on the left of the diagram. After each of these jobs completes successfully a dependent job called "Deploy" runs. This job calls a reusable workflow that contains three jobs: "Staging", "Review", and "Production." The "Production" deployment job only runs after the "Staging" job has completed successfully. Using a reusable workflow to run deployment jobs allows you to run those jobs for each build without duplicating code in workflows.
|
||||
The diagram below shows an in-progress workflow run that uses a reusable workflow.
|
||||
|
||||
* After each of three build jobs on the left of the diagram completes successfully, a dependent job called "Deploy" is run.
|
||||
* The "Deploy" job calls a reusable workflow that contains three jobs: "Staging", "Review", and "Production."
|
||||
* The "Production" deployment job only runs after the "Staging" job has completed successfully.
|
||||
* When a job targets an environment, the workflow run displays a progress bar that shows the number of steps in the job. In the diagram below, the "Production" job contains 8 steps, with step 6 currently being processed.
|
||||
* Using a reusable workflow to run deployment jobs allows you to run those jobs for each build without duplicating code in workflows.
|
||||
|
||||
![Diagram of a reusable workflow for deployment](/assets/images/help/images/reusable-workflows-ci-cd.png)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче