1 parent 616074c commit beb3535Copy full SHA for beb3535
1 file changed
lib/package-task.rb
@@ -113,7 +113,8 @@ def download(url, output_path)
113
def run_docker(os, architecture=nil)
114
id = os
115
id = "#{id}-#{architecture}" if architecture
116
- docker_tag = "#{@package}-#{id}"
+ # TODO: Fix docker tag name
117
+ docker_tag = "watson1978/#{@package}-#{id}"
118
build_command_line = [
119
"docker",
120
"build",
@@ -149,7 +150,13 @@ def run_docker(os, architecture=nil)
149
150
build_command_line << docker_context
151
run_command_line.concat([docker_tag, "/host/build.sh"])
152
- sh(*build_command_line)
153
+ if os == "centos-7"
154
+ if ENV["DOCKER_BUILD_IMAGE"]
155
+ sh(*build_command_line)
156
+ end
157
+ else
158
159
160
sh(*run_command_line)
161
end
162
0 commit comments