minke 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/minke/docker/docker_runner.rb +10 -1
- data/lib/minke/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGQ3MTA3Mjk1YTJkNzM2ZmI1Mjc0ZTEyZDc4YzAyZDI4Yjk3NjRmNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDZlMjVjNzQyNWRiYjhiM2FkODBjNzg3NDVlZjcyMmU2Y2ZiZDBkNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTliNWJiYzllNjBjOGVmNWJhZWQ0MDQ0N2ZiNzlhYzhkN2MyNzFmYTdlMzU2
|
10
|
+
N2ZjZjk4N2I4YmFlMGYyOTVlY2ZjZDE1YTQ1ZjcxNzU1YmZkZTg3ZGVhOWRi
|
11
|
+
NzhhNTYyYjVlMWQ4NGNlNWE3OGYxMGJkNWMyMGMxMzdiMjZiZTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDBiOTdkNTYzMGJmODBmMzM2Zjc2ZWQyZDIyNDg1MjVkMDJjNmEzNTA3ZWU5
|
14
|
+
ZTI0ODMyNGU5ZDMxYzY0ZDVkYmRiOGZjNDFhZjc0NDExNzdkNTI5MzU4YzEy
|
15
|
+
MzYwYTBkZWRiZmEzZGRkZDAyOTEzMWE4ZDRlN2Q4MThiODJjMzM=
|
@@ -107,7 +107,12 @@ module Minke
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def login_registry url, user, password, email
|
110
|
-
|
110
|
+
if docker_version.start_with? '1.11'
|
111
|
+
# email is removed for login in docker 1.11
|
112
|
+
system("docker login -u #{user} -p #{password} #{url}")
|
113
|
+
else
|
114
|
+
system("docker login -u #{user} -p #{password} -e #{email} #{url}")
|
115
|
+
end
|
111
116
|
$?.exitstatus
|
112
117
|
end
|
113
118
|
|
@@ -120,6 +125,10 @@ module Minke
|
|
120
125
|
system("docker push #{image_name}:latest")
|
121
126
|
$?.exitstatus == 0
|
122
127
|
end
|
128
|
+
|
129
|
+
def docker_version
|
130
|
+
::Docker.version['Version']
|
131
|
+
end
|
123
132
|
end
|
124
133
|
end
|
125
134
|
end
|
data/lib/minke/version.rb
CHANGED