Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ae924914
Commit
ae924914
authored
Jul 21, 2021
by
Andrei Merfu
Committed by
Marcel Amirault
Jul 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Dynamically runner selector feature
parent
3b85ee3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
doc/ci/yaml/index.md
doc/ci/yaml/index.md
+32
-0
No files found.
doc/ci/yaml/index.md
View file @
ae924914
...
@@ -1860,6 +1860,21 @@ osx job:
...
@@ -1860,6 +1860,21 @@ osx job:
-
echo "Hello, $USER!"
-
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`
### `allow_failure`
Use
`allow_failure`
when you want to let a job fail without impacting the rest of the CI
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]
...
@@ -3590,6 +3605,23 @@ deploystacks: [gcp, data]
deploystacks: [vultr, 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`
### `trigger`
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/8997) in [GitLab Premium](https://about.gitlab.com/pricing/) 11.8.
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/8997) in [GitLab Premium](https://about.gitlab.com/pricing/) 11.8.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment