build-labels 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/build-labels/command_to_dockerfiles.rb +2 -3
- data/lib/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: 3913f1b859cd7dd3bcddf4fa837e4df24eb1fb46f942b2cd4aa0736ed5e1f102
|
4
|
+
data.tar.gz: 75438520093fd1d9e9a186759165f32ca671e5935336e9b79f7f0db1a4ef4c5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 787452aaf8906f9396bd21fe4f8f54e0cb3f31a371cdb17bd663e7b87d7ef23c9f22f212b28b319908086f0a5022e535a2c1038ee387fca1719af863a29c223d
|
7
|
+
data.tar.gz: 63e306079f07a83a20d7f0db6215302f46ff6b5904eba4c66b1ffee68f98342c59de456e6d9b5468c30c5b70eab80780fba11fe143b6cfe1c4abcc667347e711
|
@@ -9,9 +9,8 @@ BuildLabels::CommandLine::COMMANDS[:to_dockerfiles] = Class.new do
|
|
9
9
|
compose['services'].each do |name, svc|
|
10
10
|
next unless svc['build']
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
dockerfile = svc['build']['dockerfile'] || 'Dockerfile'
|
12
|
+
dockerfile = svc['build'].is_a?(String) ? svc['build'] : svc['build']['context']
|
13
|
+
dockerfile = File.join dockerfile, (svc['build']['dockerfile'] || 'Dockerfile')
|
15
14
|
dockerfile = File.expand_path dockerfile, compose_dir
|
16
15
|
raise "file ot found: #{dockerfile}" unless File.exist? dockerfile
|
17
16
|
|
data/lib/version.rb
CHANGED