summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Sõmermaa <mart.somermaa@gmail.com>2018-06-18 20:27:11 +0000
committerRémy Coutable <remy@rymai.me>2018-08-21 19:49:56 +0200
commitee5c3ea044dab3e7d8027d8367bb3a53f6deb7a1 (patch)
treec42321680ff0355eb18c50d36cf6a6200db3b7b6
parent9367d2f722453fbaa2aee939c528ebfd3191d81f (diff)
downloadgitlab-ce-ee5c3ea044dab3e7d8027d8367bb3a53f6deb7a1.tar.gz
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: Rémy Coutable <remy@rymai.me>
-rw-r--r--doc/ci/yaml/README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index abba748db8b..e93060fec85 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -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