docker-spec 0.26.0 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker/spec.rb +5 -2
- data/lib/docker/spec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a11bce9c1425052b9bb9640e04b72597835737e05cc2b3c715b00268fc4f0a1d
|
4
|
+
data.tar.gz: 43487f947eb9995e4cb2103ce1b951e706f41fef086132830ce50e54e9ab854d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc236841dff09e431893f46821227bb2bda53c9d2c87c6266aa02865006b22ed91d9f79b4c3f273b11479aa9f6882a8091b6e1416e54beac36519a9bf2154ae7
|
7
|
+
data.tar.gz: 2826b779580e4b441910b89e67110788f84950485129d4061f5039e124105c1c1412bebb1a9c0e47b33f0b672ad4039be19bbc2aec4676dcab905a194f2946de
|
data/lib/docker/spec.rb
CHANGED
@@ -76,8 +76,11 @@ class DockerSpec
|
|
76
76
|
# Open key value store and get the current tag for this repo
|
77
77
|
tag_prefix = @config[:tag_prefix]
|
78
78
|
store = Moneta.new(:YAML, file: File.expand_path(@config[:tag_db]))
|
79
|
-
|
80
|
-
store[@config[:image_name]].to_s.match(/#{tag_prefix}(.*)/)[1].to_i
|
79
|
+
if store.key?(@config[:image_name]) && !store[@config[:image_name]].to_s.match(/#{tag_prefix}(.*)/).nil?
|
80
|
+
current_tag = store[@config[:image_name]].to_s.match(/#{tag_prefix}(.*)/)[1].to_i
|
81
|
+
else
|
82
|
+
current_tag = 0
|
83
|
+
end
|
81
84
|
new_tag = tag_prefix + (current_tag + 1).to_s
|
82
85
|
|
83
86
|
image = Docker::Image.all.detect do |i|
|
data/lib/docker/spec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Breinlinger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|