12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/shipitron/client/load_application_config.rb', line 12
def call
context.repository_url = config.repository
context.repository_branch = config.repository_branch
context.registry = config.registry
context.s3_cache_bucket = config.cache_bucket
context.build_cache_location = config.build_cache_location
context.image_name = config.image_name
context.named_tag = begin
if config.named_tag.nil?
'latest'
else
config.named_tag
end
end
context.skip_push = config.skip_push
context.build_script = config.build_script
context.post_builds = begin
if config.post_builds.nil?
[]
else
config.post_builds.map {|pb| PostBuild.new(pb) }
end
end
context.cluster_discovery = config.cluster_discovery
context.shipitron_task = config.shipitron_task
context.ecs_task_defs = config.ecs_task_defs
context.ecs_services = config.ecs_services
context.ecs_task_def_dir = config.ecs_task_def_dir
context.ecs_service_dir = config.ecs_service_dir
end
|