-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(github-actions): update job and service containers (#16770)
- Loading branch information
Showing
5 changed files
with
164 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Container describes a Docker container used within a {@link Job}. | ||
* {@link https://docs.github.com/en/actions/using-containerized-services} | ||
* | ||
* @param image - The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a registry name. | ||
*/ | ||
export interface Container { | ||
image: string; | ||
} | ||
|
||
/** | ||
* Job describes a single job within a {@link Workflow}. | ||
* {@link https://docs.github.com/en/actions/using-jobs} | ||
* | ||
* @param container - {@link https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idcontainer} | ||
* @param services - {@link https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idservices} | ||
*/ | ||
export interface Job { | ||
container?: string | Container; | ||
services?: Record<string, string | Container>; | ||
} | ||
|
||
/** | ||
* Workflow describes a GitHub Actions Workflow. | ||
* {@link https://docs.github.com/en/actions/using-workflows} | ||
* | ||
* @param jobs - {@link https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobs} | ||
*/ | ||
export interface Workflow { | ||
jobs: Record<string, Job>; | ||
} |