We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 616074c commit e8ff7eaCopy full SHA for e8ff7ea
lib/package-task.rb
@@ -114,6 +114,8 @@ def run_docker(os, architecture=nil)
114
id = os
115
id = "#{id}-#{architecture}" if architecture
116
docker_tag = "#{@package}-#{id}"
117
+ # TODO: Fix docker tag name
118
+ docker_tag = "watson1978/#{docker_tag}" if os == "centos-7"
119
build_command_line = [
120
"docker",
121
"build",
@@ -149,7 +151,13 @@ def run_docker(os, architecture=nil)
149
151
build_command_line << docker_context
150
152
run_command_line.concat([docker_tag, "/host/build.sh"])
153
- sh(*build_command_line)
154
+ if os == "centos-7"
155
+ if ENV["DOCKER_BUILD_IMAGE"]
156
+ sh(*build_command_line)
157
+ end
158
+ else
159
160
161
sh(*run_command_line)
162
end
163
0 commit comments