dockly 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dockly/deb.rb +5 -2
- data/lib/dockly/version.rb +1 -1
- metadata +1 -1
data/lib/dockly/deb.rb
CHANGED
@@ -143,11 +143,14 @@ private
|
|
143
143
|
def compile_pre_install
|
144
144
|
registry = !docker.nil? && docker.registry
|
145
145
|
if registry
|
146
|
+
login_str = if registry.authentication_required?
|
147
|
+
"docker login -e '#{registry.email}' -p '$DOCKER_REGISTRY_PASSWORD' -u '#{registry.username}'"
|
148
|
+
end
|
146
149
|
[
|
147
150
|
pre_install,
|
148
|
-
|
151
|
+
login_str,
|
149
152
|
"docker pull #{docker.repo}"
|
150
|
-
].join("\n")
|
153
|
+
].compact.join("\n")
|
151
154
|
else
|
152
155
|
pre_install
|
153
156
|
end
|
data/lib/dockly/version.rb
CHANGED