12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/orchestra/cli/images.rb', line 12
def build
log "Checking out commit #{options.commit_id}..."
checkout_time = Benchmark.realtime do
execute git_checkout_cmd, escape_arguments: false
end
log "Checkout finished in #{checkout_time.to_i}s\n"
build_time = Benchmark.realtime do
execute buildx_build_cmd, escape_arguments: false
end
log "Build finished in #{build_time.to_i}s"
if FileUtils.rm_rf git_checkout_path
log "Removed #{git_checkout_path}"
end
end
|