summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-18 13:25:36 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-18 13:25:36 +0300
commit208b2f02a231f5ec40043be3ae49b23cef71c51b (patch)
treedc27a34b7a49ad424966db0a5bb23ed823e3120f /doc/examples
parent4a51d505b0350e6b72baf1e2812ca0bad4986ca7 (diff)
downloadgitlab-ci-208b2f02a231f5ec40043be3ae49b23cef71c51b.tar.gz
update documentation
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/README.md20
-rw-r--r--doc/examples/configure/ruby.md7
2 files changed, 19 insertions, 8 deletions
diff --git a/doc/examples/README.md b/doc/examples/README.md
index 1e11a7e..444d68b 100644
--- a/doc/examples/README.md
+++ b/doc/examples/README.md
@@ -13,10 +13,22 @@ The runner runs the line below before it runs the commands in your build script:
# Environmental variables
-The build command is run from [GitlabCi::Build#command](https://gitlab.com/gitlab-org/gitlab-ci-runner/blob/master/lib/build.rb#L96) and contains the following environmental variables:
-
- CI_SERVER, CI_SERVER_NAME, CI_SERVER_VERSION, CI_SERVER_REVISION
- CI_BUILD_REF, CI_BUILD_BEFORE_SHA, CI_BUILD_REF_NAME (branch), CI_BUILD_ID
+The runner sets the following environmental variables:
+
+```
+CI=true
+CI_SERVER=true
+CI_SERVER_NAME=GitLab CI
+GITLAB_CI=true
+CI_SERVER_VERSION
+CI_SERVER_REVISION
+CI_BUILD_REF
+CI_BUILD_BEFORE_SHA
+CI_BUILD_REF_NAME (branch)
+CI_BUILD_ID
+CI_BUILD_REPO
+CI_PROJECT_DIR
+```
# Build script examples
diff --git a/doc/examples/configure/ruby.md b/doc/examples/configure/ruby.md
index 466e87e..3ecdaac 100644
--- a/doc/examples/configure/ruby.md
+++ b/doc/examples/configure/ruby.md
@@ -18,9 +18,8 @@ curl -L https://www.chef.io/chef/install.sh | bash
chef-client -z -r 'recipe[cookbook-gitlab-test::ruby], recipe[cookbook-gitlab-test::mysql]'
)
+
### Register your runner instance with a GitLab CI Coordinator
-sudo /opt/gitlab-runner/bin/setup -C /home/gitlab-runner
+gitlab-ci-multi-runner register
-# Restart the gitlab-runner Upstart script
-sudo service gitlab-runner restart
-```
+``` \ No newline at end of file