Merge branch 'main' into patch-1
This commit is contained in:
@@ -21,17 +21,17 @@ Workflow files use YAML syntax, and must have either a `.yml` or `.yaml` file ex
|
||||
|
||||
You must store workflow files in the `.github/workflows` directory of your repository.
|
||||
|
||||
### **`name`**
|
||||
### `name`
|
||||
|
||||
The name of your workflow. {% data variables.product.prodname_dotcom %} displays the names of your workflows on your repository's actions page. If you omit `name`, {% data variables.product.prodname_dotcom %} sets it to the workflow file path relative to the root of the repository.
|
||||
|
||||
### **`on`**
|
||||
### `on`
|
||||
|
||||
**Required** The name of the {% data variables.product.prodname_dotcom %} event that triggers the workflow. You can provide a single event `string`, `array` of events, `array` of event `types`, or an event configuration `map` that schedules a workflow or restricts the execution of a workflow to specific files, tags, or branch changes. For a list of available events, see "[Events that trigger workflows](/articles/events-that-trigger-workflows)."
|
||||
|
||||
{% data reusables.github-actions.actions-on-examples %}
|
||||
|
||||
### **`on.<event_name>.types`**
|
||||
### `on.<event_name>.types`
|
||||
|
||||
Selects the types of activity that will trigger a workflow run. Most GitHub events are triggered by more than one type of activity. For example, the event for the release resource is triggered when a release is `published`, `unpublished`, `created`, `edited`, `deleted`, or `prereleased`. The `types` keyword enables you to narrow down activity that causes the workflow to run. When only one activity type triggers a webhook event, the `types` keyword is unnecessary.
|
||||
|
||||
@@ -45,7 +45,7 @@ on:
|
||||
types: [published, created, edited]
|
||||
```
|
||||
|
||||
### **`on.<push|pull_request>.<branches|tags>`**
|
||||
### `on.<push|pull_request>.<branches|tags>`
|
||||
|
||||
When using the `push` and `pull_request` events, you can configure a workflow to run on specific branches or tags. For a `pull_request` event, only branches and tags on the base are evaluated. If you define only `tags` or only `branches`, the workflow won't run for events affecting the undefined Git ref.
|
||||
|
||||
@@ -112,7 +112,7 @@ on:
|
||||
- '!releases/**-alpha'
|
||||
```
|
||||
|
||||
### **`on.<push|pull_request>.paths`**
|
||||
### `on.<push|pull_request>.paths`
|
||||
|
||||
When using the `push` and `pull_request` events, you can configure a workflow to run when at least one file does not match `paths-ignore` or at least one modified file matches the configured `paths`. Path filters are not evaluated for pushes to tags.
|
||||
|
||||
@@ -179,13 +179,13 @@ The filter determines if a workflow should run by evaluating the changed files a
|
||||
|
||||
For more information, see "[About comparing branches in pull requests](/articles/about-comparing-branches-in-pull-requests)."
|
||||
|
||||
### **`on.schedule`**
|
||||
### `on.schedule`
|
||||
|
||||
{% data reusables.repositories.actions-scheduled-workflow-example %}
|
||||
|
||||
For more information about cron syntax, see "[Events that trigger workflows](/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events)."
|
||||
|
||||
### **`env`**
|
||||
### `env`
|
||||
|
||||
A `map` of environment variables that are available to all jobs and steps in the workflow. You can also set environment variables that are only available to a job or step. For more information, see [`jobs.<job_id>.env`](#jobsjob_idenv) and [`jobs.<job_id>.steps.env`](#jobsjob_idstepsenv).
|
||||
|
||||
@@ -198,13 +198,13 @@ env:
|
||||
SERVER: production
|
||||
```
|
||||
|
||||
### **`defaults`**
|
||||
### `defaults`
|
||||
|
||||
A `map` of default settings that will apply to all jobs in the workflow. You can also set default settings that are only available to a job. For more information, see [`jobs.<job_id>.defaults`](#jobsjob_iddefaults).
|
||||
|
||||
{% data reusables.github-actions.defaults-override %}
|
||||
|
||||
### **`defaults.run`**
|
||||
### `defaults.run`
|
||||
|
||||
You can provide default `shell` and `working-directory` options for all [`run`](#jobsjob_idstepsrun) steps in a workflow. You can also set default settings for `run` that are only available to a job. For more information, see [`jobs.<job_id>.defaults.run`](#jobsjob_iddefaultsrun). You cannot use contexts or expressions in this keyword.
|
||||
|
||||
@@ -219,7 +219,7 @@ defaults:
|
||||
working-directory: scripts
|
||||
```
|
||||
|
||||
### **`jobs`**
|
||||
### `jobs`
|
||||
|
||||
A workflow run is made up of one or more jobs. Jobs run in parallel by default. To run jobs sequentially, you can define dependencies on other jobs using the `jobs.<job_id>.needs` keyword.
|
||||
|
||||
@@ -227,9 +227,9 @@ Each job runs in an environment specified by `runs-on`.
|
||||
|
||||
You can run an unlimited number of jobs as long as you are within the workflow usage limits. For more information, see "[Usage limits and billing](/actions/reference/usage-limits-billing-and-administration)" for {% data variables.product.prodname_dotcom %}-hosted runners and "[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners/#usage-limits)" for self-hosted runner usage limits.
|
||||
|
||||
If you need to find the unique identifier of a job running in a workflow run, you can use the {% data variables.product.prodname_dotcom %} API. For more information, see "[Workflow Jobs](/v3/actions/workflow-jobs)."
|
||||
If you need to find the unique identifier of a job running in a workflow run, you can use the {% data variables.product.prodname_dotcom %} API. For more information, see "[Workflow Jobs](/rest/reference/actions#workflow-jobs)."
|
||||
|
||||
### **`jobs.<job_id>`**
|
||||
### `jobs.<job_id>`
|
||||
|
||||
Each job must have an id to associate with the job. The key `job_id` is a string and its value is a map of the job's configuration data. You must replace `<job_id>` with a string that is unique to the `jobs` object. The `<job_id>` must start with a letter or `_` and contain only alphanumeric characters, `-`, or `_`.
|
||||
|
||||
@@ -243,11 +243,11 @@ jobs:
|
||||
name: My second job
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.name`**
|
||||
### `jobs.<job_id>.name`
|
||||
|
||||
The name of the job displayed on {% data variables.product.prodname_dotcom %}.
|
||||
|
||||
### **`jobs.<job_id>.needs`**
|
||||
### `jobs.<job_id>.needs`
|
||||
|
||||
Identifies any jobs that must complete successfully before this job will run. It can be a string or array of strings. If a job fails, all jobs that need it are skipped unless the jobs use a conditional statement that causes the job to continue.
|
||||
|
||||
@@ -270,7 +270,7 @@ The jobs in this example run sequentially:
|
||||
2. `job2`
|
||||
3. `job3`
|
||||
|
||||
### **`jobs.<job_id>.runs-on`**
|
||||
### `jobs.<job_id>.runs-on`
|
||||
|
||||
**Required** The type of machine to run the job on. The machine can be either a {% data variables.product.prodname_dotcom %}-hosted runner or a self-hosted runner.
|
||||
|
||||
@@ -286,7 +286,7 @@ Available {% data variables.product.prodname_dotcom %}-hosted runner types are:
|
||||
|
||||
{% data reusables.github-actions.ubuntu-runner-preview %}
|
||||
|
||||
##### **Example**
|
||||
##### Example
|
||||
|
||||
```yaml
|
||||
runs-on: ubuntu-latest
|
||||
@@ -298,7 +298,7 @@ For more information, see "[Virtual environments for {% data variables.product.p
|
||||
|
||||
{% data reusables.github-actions.self-hosted-runner-labels-runs-on %}
|
||||
|
||||
##### **Example**
|
||||
##### Example
|
||||
|
||||
```yaml
|
||||
runs-on: [self-hosted, linux]
|
||||
@@ -306,7 +306,7 @@ runs-on: [self-hosted, linux]
|
||||
|
||||
For more information, see "[About self-hosted runners](/github/automating-your-workflow-with-github-actions/about-self-hosted-runners)" and "[Using self-hosted runners in a workflow](/github/automating-your-workflow-with-github-actions/using-self-hosted-runners-in-a-workflow)."
|
||||
|
||||
### **`jobs.<job_id>.outputs`**
|
||||
### `jobs.<job_id>.outputs`
|
||||
|
||||
A `map` of outputs for a job. Job outputs are available to all downstream jobs that depend on this job. For more information on defining job dependencies, see [`jobs.<job_id>.needs`](#jobsjob_idneeds).
|
||||
|
||||
@@ -314,7 +314,7 @@ Job outputs are strings, and job outputs containing expressions are evaluated on
|
||||
|
||||
To use job outputs in a dependent job, you can use the `needs` context. For more information, see "[Context and expression syntax for {% data variables.product.prodname_actions %}](/actions/reference/context-and-expression-syntax-for-github-actions#needs-context)."
|
||||
|
||||
#### **Example**
|
||||
#### Example
|
||||
|
||||
{% raw %}
|
||||
```yaml
|
||||
@@ -338,13 +338,13 @@ jobs:
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
### **`jobs.<job_id>.env`**
|
||||
### `jobs.<job_id>.env`
|
||||
|
||||
A `map` of environment variables that are available to all steps in the job. You can also set environment variables for the entire workflow or an individual step. For more information, see [`env`](#env) and [`jobs.<job_id>.steps.env`](#jobsjob_idstepsenv).
|
||||
|
||||
{% data reusables.repositories.actions-env-var-note %}
|
||||
|
||||
#### **Example**
|
||||
#### Example
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
@@ -353,13 +353,13 @@ jobs:
|
||||
FIRST_NAME: Mona
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.defaults`**
|
||||
### `jobs.<job_id>.defaults`
|
||||
|
||||
A `map` of default settings that will apply to all steps in the job. You can also set default settings for the entire workflow. For more information, see [`defaults`](#defaults).
|
||||
|
||||
{% data reusables.github-actions.defaults-override %}
|
||||
|
||||
### **`jobs.<job_id>.defaults.run`**
|
||||
### `jobs.<job_id>.defaults.run`
|
||||
|
||||
Provide default `shell` and `working-directory` to all `run` steps in the job. Context and expression are not allowed in this section.
|
||||
|
||||
@@ -379,13 +379,13 @@ jobs:
|
||||
working-directory: scripts
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.if`**
|
||||
### `jobs.<job_id>.if`
|
||||
|
||||
You can use the `if` conditional to prevent a job from running unless a condition is met. You can use any supported context and expression to create a conditional.
|
||||
|
||||
{% data reusables.github-actions.expression-syntax-if %} For more information, see "[Context and expression syntax for {% data variables.product.prodname_actions %}](/actions/reference/context-and-expression-syntax-for-github-actions)."
|
||||
|
||||
### **`jobs.<job_id>.steps`**
|
||||
### `jobs.<job_id>.steps`
|
||||
|
||||
A job contains a sequence of tasks called `steps`. Steps can run commands, run setup tasks, or run an action in your repository, a public repository, or an action published in a Docker registry. Not all steps run actions, but all actions run as a step. Each step runs in its own process in the runner environment and has access to the workspace and filesystem. Because steps run in their own process, changes to environment variables are not preserved between steps. {% data variables.product.prodname_dotcom %} provides built-in steps to set up and complete a job.
|
||||
|
||||
@@ -415,11 +415,11 @@ jobs:
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
### **`jobs.<job_id>.steps.id`**
|
||||
### `jobs.<job_id>.steps.id`
|
||||
|
||||
A unique identifier for the step. You can use the `id` to reference the step in contexts. For more information, see "[Context and expression syntax for {% data variables.product.prodname_actions %}](/actions/reference/context-and-expression-syntax-for-github-actions)."
|
||||
|
||||
### **`jobs.<job_id>.steps.if`**
|
||||
### `jobs.<job_id>.steps.if`
|
||||
|
||||
You can use the `if` conditional to prevent a step from running unless a condition is met. You can use any supported context and expression to create a conditional.
|
||||
|
||||
@@ -446,14 +446,14 @@ steps:
|
||||
uses: monacorp/action-name@main
|
||||
- name: My backup step
|
||||
if: {% raw %}${{ failure() }}{% endraw %}
|
||||
uses: actions/heroku@master
|
||||
uses: actions/heroku@1.0.0
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.steps.name`**
|
||||
### `jobs.<job_id>.steps.name`
|
||||
|
||||
A name for your step to display on {% data variables.product.prodname_dotcom %}.
|
||||
|
||||
### **`jobs.<job_id>.steps.uses`**
|
||||
### `jobs.<job_id>.steps.uses`
|
||||
|
||||
Selects an action to run as part of a step in your job. An action is a reusable unit of code. You can use an action defined in the same repository as the workflow, a public repository, or in a [published Docker container image](https://hub.docker.com/).
|
||||
|
||||
@@ -492,7 +492,7 @@ jobs:
|
||||
steps:
|
||||
- name: My first step
|
||||
# Uses the default branch of a public repository
|
||||
uses: actions/heroku@master
|
||||
uses: actions/heroku@1.0.0
|
||||
- name: My second step
|
||||
# Uses a specific version tag of a public repository
|
||||
uses: actions/aws@v2.0.1
|
||||
@@ -556,7 +556,7 @@ jobs:
|
||||
uses: docker://gcr.io/cloud-builders/gradle
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.steps.run`**
|
||||
### `jobs.<job_id>.steps.run`
|
||||
|
||||
Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.
|
||||
|
||||
@@ -659,9 +659,9 @@ For built-in shell keywords, we provide the following defaults that are executed
|
||||
|
||||
- `cmd`
|
||||
- There doesn't seem to be a way to fully opt into fail-fast behavior other than writing your script to check each error code and respond accordingly. Because we can't actually provide that behavior by default, you need to write this behavior into your script.
|
||||
- `cmd.exe` will exit with the error level of the last program it executed, and it will and return the error code to the runner. This behavior is internally consistent with the previous `sh` and `pwsh` default behavior and is the `cmd.exe` default, so this behavior remains intact.
|
||||
- `cmd.exe` will exit with the error level of the last program it executed, and it will return the error code to the runner. This behavior is internally consistent with the previous `sh` and `pwsh` default behavior and is the `cmd.exe` default, so this behavior remains intact.
|
||||
|
||||
### **`jobs.<job_id>.steps.with`**
|
||||
### `jobs.<job_id>.steps.with`
|
||||
|
||||
A `map` of the input parameters defined by the action. Each input parameter is a key/value pair. Input parameters are set as environment variables. The variable is prefixed with `INPUT_` and converted to upper case.
|
||||
|
||||
@@ -681,7 +681,7 @@ jobs:
|
||||
last_name: Octocat
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.steps.with.args`**
|
||||
### `jobs.<job_id>.steps.with.args`
|
||||
|
||||
A `string` that defines the inputs for a Docker container. {% data variables.product.prodname_dotcom %} passes the `args` to the container's `ENTRYPOINT` when the container starts up. An `array of strings` is not supported by this parameter.
|
||||
|
||||
@@ -704,7 +704,7 @@ The `args` are used in place of the `CMD` instruction in a `Dockerfile`. If you
|
||||
1. Use defaults that allow using the action without specifying any `args`.
|
||||
1. If the action exposes a `--help` flag, or something similar, use that as the default to make your action self-documenting.
|
||||
|
||||
### **`jobs.<job_id>.steps.with.entrypoint`**
|
||||
### `jobs.<job_id>.steps.with.entrypoint`
|
||||
|
||||
Overrides the Docker `ENTRYPOINT` in the `Dockerfile`, or sets it if one wasn't already specified. Unlike the Docker `ENTRYPOINT` instruction which has a shell and exec form, `entrypoint` keyword accepts only a single string defining the executable to be run.
|
||||
|
||||
@@ -718,9 +718,9 @@ steps:
|
||||
entrypoint: /a/different/executable
|
||||
```
|
||||
|
||||
The `entrypoint` keyword is meant to use with Docker container actions, but you can also use it with JavaScript actions that don't define any inputs.
|
||||
The `entrypoint` keyword is meant to be used with Docker container actions, but you can also use it with JavaScript actions that don't define any inputs.
|
||||
|
||||
### **`jobs.<job_id>.steps.env`**
|
||||
### `jobs.<job_id>.steps.env`
|
||||
|
||||
Sets environment variables for steps to use in the runner environment. You can also set environment variables for the entire workflow or a job. For more information, see [`env`](#env) and [`jobs.<job_id>.env`](#jobsjob_idenv).
|
||||
|
||||
@@ -741,23 +741,23 @@ steps:
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
### **`jobs.<job_id>.steps.continue-on-error`**
|
||||
### `jobs.<job_id>.steps.continue-on-error`
|
||||
|
||||
Prevents a job from failing when a step fails. Set to `true` to allow a job to pass when this step fails.
|
||||
|
||||
### **`jobs.<job_id>.steps.timeout-minutes`**
|
||||
### `jobs.<job_id>.steps.timeout-minutes`
|
||||
|
||||
The maximum number of minutes to run the step before killing the process.
|
||||
|
||||
### **`jobs.<job_id>.timeout-minutes`**
|
||||
### `jobs.<job_id>.timeout-minutes`
|
||||
|
||||
The maximum number of minutes to let a job run before {% data variables.product.prodname_dotcom %} automatically cancels it. Default: 360
|
||||
|
||||
### **`jobs.<job_id>.strategy`**
|
||||
### `jobs.<job_id>.strategy`
|
||||
|
||||
A strategy creates a build matrix for your jobs. You can define different variations of an environment to run each job in.
|
||||
|
||||
### **`jobs.<job_id>.strategy.matrix`**
|
||||
### `jobs.<job_id>.strategy.matrix`
|
||||
|
||||
You can define a matrix of different job configurations. A matrix allows you to create multiple jobs by performing variable substitution in a single job definition. For example, you can use a matrix to create jobs for more than one supported version of a programming language, operating system, or tool. A matrix reuses the job's configuration and creates a job for each matrix you configure.
|
||||
|
||||
@@ -876,11 +876,17 @@ strategy:
|
||||
|
||||
{% endnote %}
|
||||
|
||||
### **`jobs.<job_id>.strategy.fail-fast`**
|
||||
##### Using environment variables in a matrix
|
||||
|
||||
You can add custom environment variables for each test combination by using the `include` key. You can then refer to the custom environment variables in a later step.
|
||||
|
||||
{% data reusables.github-actions.matrix-variable-example %}
|
||||
|
||||
### `jobs.<job_id>.strategy.fail-fast`
|
||||
|
||||
When set to `true`, {% data variables.product.prodname_dotcom %} cancels all in-progress jobs if any `matrix` job fails. Default: `true`
|
||||
|
||||
### **`jobs.<job_id>.strategy.max-parallel`**
|
||||
### `jobs.<job_id>.strategy.max-parallel`
|
||||
|
||||
The maximum number of jobs that can run simultaneously when using a `matrix` job strategy. By default, {% data variables.product.prodname_dotcom %} will maximize the number of jobs run in parallel depending on the available runners on {% data variables.product.prodname_dotcom %}-hosted virtual machines.
|
||||
|
||||
@@ -889,7 +895,7 @@ strategy:
|
||||
max-parallel: 2
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.continue-on-error`**
|
||||
### `jobs.<job_id>.continue-on-error`
|
||||
|
||||
Prevents a workflow run from failing when a job fails. Set to `true` to allow a workflow run to pass when this job fails.
|
||||
|
||||
@@ -914,7 +920,7 @@ strategy:
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
### **`jobs.<job_id>.container`**
|
||||
### `jobs.<job_id>.container`
|
||||
|
||||
A container to run any steps in a job that don't already specify a container. If you have steps that use both script and container actions, the container actions will run as sibling containers on the same network with the same volume mounts.
|
||||
|
||||
@@ -944,12 +950,14 @@ jobs:
|
||||
container: node:10.16-jessie
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.container.image`**
|
||||
### `jobs.<job_id>.container.image`
|
||||
|
||||
The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a {% if currentVersion != "free-pro-team@latest" and currentVersion ver_lt "enterprise-server@2.23" %}public{% endif %} registry name.
|
||||
The Docker image to use as the container to run the action. The value can be the Docker Hub image name or a {% if enterpriseServerVersions contains currentVersion and currentVersion ver_lt "enterprise-server@2.23" %}public{% endif %} registry name.
|
||||
|
||||
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}
|
||||
### **`jobs.<job_id>.container.credentials`**
|
||||
|
||||
### `jobs.<job_id>.container.credentials`
|
||||
|
||||
|
||||
{% data reusables.actions.registry-credentials %}
|
||||
|
||||
@@ -966,15 +974,15 @@ container:
|
||||
{% endraw %}
|
||||
{% endif %}
|
||||
|
||||
### **`jobs.<job_id>.container.env`**
|
||||
### `jobs.<job_id>.container.env`
|
||||
|
||||
Sets a `map` of environment variables in the container.
|
||||
|
||||
### **`jobs.<job_id>.container.ports`**
|
||||
### `jobs.<job_id>.container.ports`
|
||||
|
||||
Sets an `array` of ports to expose on the container.
|
||||
|
||||
### **`jobs.<job_id>.container.volumes`**
|
||||
### `jobs.<job_id>.container.volumes`
|
||||
|
||||
Sets an `array` of volumes for the container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.
|
||||
|
||||
@@ -993,11 +1001,11 @@ volumes:
|
||||
- /source/directory:/destination/directory
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.container.options`**
|
||||
### `jobs.<job_id>.container.options`
|
||||
|
||||
Additional Docker container resource options. For a list of options, see "[`docker create` options](https://docs.docker.com/engine/reference/commandline/create/#options)."
|
||||
|
||||
### **`jobs.<job_id>.services`**
|
||||
### `jobs.<job_id>.services`
|
||||
|
||||
{% data reusables.github-actions.docker-container-os-support %}
|
||||
|
||||
@@ -1027,12 +1035,13 @@ services:
|
||||
- 6379/tcp
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.services.<service_id>.image`**
|
||||
### `jobs.<job_id>.services.<service_id>.image`
|
||||
|
||||
The Docker image to use as the service container to run the action. The value can be the Docker Hub image name or a {% if currentVersion != "free-pro-team@latest" and currentVersion ver_lt "enterprise-server@2.23" %}public{% endif %} registry name.
|
||||
The Docker image to use as the service container to run the action. The value can be the Docker Hub image name or a {% if enterpriseServerVersions contains currentVersion and currentVersion ver_lt "enterprise-server@2.23" %}public{% endif %} registry name.
|
||||
|
||||
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}
|
||||
### **`jobs.<job_id>.services.<service_id>.credentials`**
|
||||
|
||||
### `jobs.<job_id>.services.<service_id>.credentials`
|
||||
|
||||
{% data reusables.actions.registry-credentials %}
|
||||
|
||||
@@ -1055,15 +1064,15 @@ services:
|
||||
{% endraw %}
|
||||
{% endif %}
|
||||
|
||||
### **`jobs.<job_id>.services.<service_id>.env`**
|
||||
### `jobs.<job_id>.services.<service_id>.env`
|
||||
|
||||
Sets a `map` of environment variables in the service container.
|
||||
|
||||
### **`jobs.<job_id>.services.<service_id>.ports`**
|
||||
### `jobs.<job_id>.services.<service_id>.ports`
|
||||
|
||||
Sets an `array` of ports to expose on the service container.
|
||||
|
||||
### **`jobs.<job_id>.services.<service_id>.volumes`**
|
||||
### `jobs.<job_id>.services.<service_id>.volumes`
|
||||
|
||||
Sets an `array` of volumes for the service container to use. You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.
|
||||
|
||||
@@ -1082,7 +1091,7 @@ volumes:
|
||||
- /source/directory:/destination/directory
|
||||
```
|
||||
|
||||
### **`jobs.<job_id>.services.<service_id>.options`**
|
||||
### `jobs.<job_id>.services.<service_id>.options`
|
||||
|
||||
Additional Docker container resource options. For a list of options, see "[`docker create` options](https://docs.docker.com/engine/reference/commandline/create/#options)."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user