summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJob van der Voort <jobvandervoort@gmail.com>2015-11-05 14:34:40 +0100
committerJob van der Voort <jobvandervoort@gmail.com>2015-11-05 14:34:40 +0100
commit7489335d26e400fec56126568344dfabaf3140c1 (patch)
tree76bc16978ff9c6d6cbe6d60a4c70a4d13dfbb21a
parent4dcd7410befb7d18535b81106bf5781be28d7b01 (diff)
downloadgitlab-ci-ci-docs.tar.gz
more why on ci ymlci-docs
-rw-r--r--doc/yaml/README.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/doc/yaml/README.md b/doc/yaml/README.md
index 4caecca..dc6a89e 100644
--- a/doc/yaml/README.md
+++ b/doc/yaml/README.md
@@ -20,6 +20,22 @@ Of course a command can execute code directly (`./configure;make;make install`)
Jobs are used to create builds, which are then picked up by [runners](../runners/README.md) and executed within the environment of the runner.
What is important, is that each job is run independently from each other.
+## Why `.gitlab-ci.yml`
+
+By placing a single configuration file in the root of your repository,
+it is version controlled and you get all the advantages of git.
+
+In addition, builds for older versions of the repository will work just fine,
+as GitLab look at the `.gitlab-ci.yml` of the pushed commit.
+This means that forks also build without any problem.
+
+You can even set up different builds for different branches. This allows you
+to only deploy the `production` branch, for instance.
+
+By having a single source of truth, everyone can view and contribute to the
+stability of your CI builds, eventually improving the quality of your development
+cycle.
+
## .gitlab-ci.yml
The YAML syntax allows for using more complex job specifications than in the above example:
@@ -201,4 +217,4 @@ Each instance of GitLab CI has an embedded debug tool called Lint.
You can find the link to the Lint in the project's settings page or use short url `/lint`.
## Skipping builds
-There is one more way to skip all builds, if your commit message contains tag [ci skip]. In this case, commit will be created but builds will be skipped \ No newline at end of file
+There is one more way to skip all builds, if your commit message contains tag [ci skip]. In this case, commit will be created but builds will be skipped