blubber 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blubber/tagger.rb +5 -2
- data/lib/blubber/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 457810ff6394abec0c13d9f0116d72a567cc0bf2d71e0f05aca667b4e2e35c09
|
4
|
+
data.tar.gz: 04b89a2313b751e77cd9c5378aa3d67d1793c4be1099c0a5b35b0355b9846750
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934b188004e2822626a83f393cd035188c4d2fb22c5f5b06f441ea4b004fe2a1806bff6d987423fb6c79298622f0274faf872c83557578c544dac8bb7e2cb019
|
7
|
+
data.tar.gz: e8b817c7d36fd1eddc2d97c9c60106784021d9b060f88ed1e24f94839c99d8cc896400aa5cc19d71b98b86e56b30250b33580bf7698c9bffad0c01c14d0dbb0a
|
data/lib/blubber/tagger.rb
CHANGED
@@ -23,7 +23,8 @@ module Blubber
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def tags
|
26
|
-
@tags ||=
|
26
|
+
@tags ||= begin
|
27
|
+
tags = []
|
27
28
|
tags << "#{commit}#{dirty? ? '-dirty' : ''}"
|
28
29
|
|
29
30
|
unless dirty?
|
@@ -31,7 +32,9 @@ module Blubber
|
|
31
32
|
tags << 'latest' if branch_name == 'master'
|
32
33
|
end
|
33
34
|
|
34
|
-
tags
|
35
|
+
tags << File.read("#{layer}/Dockerfile").scan(/LABEL version=([\w][\w.-]*)/)
|
36
|
+
|
37
|
+
tags.flatten
|
35
38
|
end
|
36
39
|
end
|
37
40
|
|
data/lib/blubber/version.rb
CHANGED