2016-06-06 03:24:16 -04:00
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
class Config
|
|
|
|
module Node
|
2016-06-09 07:01:19 -04:00
|
|
|
##
|
|
|
|
# This class represents a global entry - root node for entire
|
|
|
|
# GitLab CI Configuration file.
|
|
|
|
#
|
2016-06-06 03:24:16 -04:00
|
|
|
class Global < Entry
|
2016-06-09 04:08:49 -04:00
|
|
|
include Configurable
|
|
|
|
|
2016-06-10 04:49:47 -04:00
|
|
|
allow_node :before_script, Script,
|
2016-06-09 04:53:56 -04:00
|
|
|
description: 'Script that will be executed before each job.'
|
2016-06-21 06:10:13 -04:00
|
|
|
|
|
|
|
allow_node :image, Image,
|
|
|
|
description: 'Docker image that will be used to execute jobs.'
|
2016-06-21 06:40:52 -04:00
|
|
|
|
|
|
|
allow_node :services, Services,
|
|
|
|
description: 'Docker images that will be linked to the container.'
|
2016-06-06 03:24:16 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|