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 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
- "docker login -e '#{registry.email}' -p '$DOCKER_REGISTRY_PASSWORD' -u '#{registry.username}'",
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
@@ -1,3 +1,3 @@
1
1
  module Dockly
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: