build-labels 0.0.8 → 0.0.10
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/builder.rb +2 -0
- data/lib/build-labels/command_to_dockerfiles.rb +2 -3
- data/lib/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: daaf6cc3b069d9586bae2b848fbdc241badd60ea86ebb977cec28cf641305dee
|
4
|
+
data.tar.gz: 79c980c2d71aca4b82b0c52c52815a493cfada3f51835c3fad7662c613ef246f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1c1ab92e86b73f7334493c7d0cbf956f8d9539904e1d7c7514faa0bb63c066e12e31d0f009d47ca135a4385947f7a35900db5b146355d7a7bc6f07d8a478b5e
|
7
|
+
data.tar.gz: 00e0e3ceb492e339757e79ef9847f8231a142900f48fcca873e8bbfeac4a31e63b0157ba55a603c0269f6dff398496e961b0422d5355a2ae5cf9159eb90f1fc9
|
data/lib/build-labels/builder.rb
CHANGED
@@ -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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build-labels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artyom B
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|