未验证 提交 4bcd8db3 编写于 作者: M Mart Sõmermaa 提交者: Rémy Coutable

Add information how to run multi-platform builds with tags to doc/ci/yaml/README.md

Originally submitted at
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6176.
Signed-off-by: NRémy Coutable <remy@rymai.me>
上级 eb034704
......@@ -390,6 +390,28 @@ job:
The specification above, will make sure that `job` is built by a Runner that
has both `ruby` AND `postgres` tags defined.
Tags are also a great way to run different jobs on different platforms, for
example, given an OS X Runner with tag `osx` and Windows Runner with tag
`windows`, the following jobs run on respective platforms:
```yaml
windows job:
stage:
- build
tags:
- windows
script:
- echo Hello, %USERNAME%!
osx job:
stage:
- build
tags:
- osx
script:
- echo "Hello, $USER!"
```
## `allow_failure`
`allow_failure` is used when you want to allow a job to fail without impacting
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册