Commit f095fc89 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch '35742-runner-variable-substitution-docs' into 'master'

Docs: Dynamically runner selector feature

See merge request gitlab-org/gitlab!66304
parents c0cb5c43 ae924914
......@@ -1860,6 +1860,21 @@ osx job:
- echo "Hello, $USER!"
```
In [GitLab 14.1 and later](https://gitlab.com/gitlab-org/gitlab/-/issues/35742), you can
use [CI/CD variables](../variables/index.md) with `tags` for dynamic runner selection:
```yaml
variables:
KUBERNETES_RUNNER: kubernetes
job:
tags:
- docker
- $KUBERNETES_RUNNER
script:
- echo "Hello runner selector feature"
```
### `allow_failure`
Use `allow_failure` when you want to let a job fail without impacting the rest of the CI
......@@ -3590,6 +3605,23 @@ deploystacks: [gcp, data]
deploystacks: [vultr, data]
```
In [GitLab 14.1 and later](https://gitlab.com/gitlab-org/gitlab/-/issues/239737), you can
use the variables defined in `parallel: matrix` with the [`tags`](#tags) keyword for
dynamic runner selection.
```yaml
deploystacks:
stage: deploy
parallel:
matrix:
- PROVIDER: aws
STACK: [monitoring, app1]
- PROVIDER: gcp
STACK: [data]
tags:
- ${PROVIDER}-${STACK}
```
### `trigger`
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/8997) in [GitLab Premium](https://about.gitlab.com/pricing/) 11.8.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment