build-labels 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16c94f8ee0325f5a908ff99778c8e590c93ccd270dadc7df019c86e586bc788c
4
- data.tar.gz: 1be4edf51d1bc84e8ea74168b1d5fb1f81f83582f2bfc5d8e9d4b9f9f8dee078
3
+ metadata.gz: 69154b96d9e2fadb249e833c1663cfdf448fcc11737c8a43f9c6a0fe60dae773
4
+ data.tar.gz: d12379bc7a1a75ec87eda38f658a6ee5e1fee76a2da4d0ee6fd2ec3c34dad550
5
5
  SHA512:
6
- metadata.gz: c58fd66950b1d37f491989ae511efbaa6715f4072b630be97ca85cabd14aaf24c91b41d22d87d7c29e37445c8be472cfc59b6a378e8b45c685b9e8cf429a0a7a
7
- data.tar.gz: 4fa922c024bfe2b1ae6169eb57633093726015bc4b195030ab8f8ed74981d5956ede6f66b6f24cf75c393628142e20decf64fcf937f6d53bc6dc084d3426ed70
6
+ metadata.gz: a8f860d935d894c7c9c63583e800476f8fd5238671dbd1d1e38a8ed4ba806a7d13be59e9f53ace690a9b54b93ba1ebe5c11fdb6cbf999f4766ea41483b776bac
7
+ data.tar.gz: 6b69b46b058e89a24463e12fa0bb40304d48e65ae6ad728c24080de5fcda7e11a17a53cbe8741dd6d728b6d7a696e790655a1e8b9457c771550078e2f29a997d
@@ -6,6 +6,10 @@ services:
6
6
  build:
7
7
  context: .
8
8
  dockerfile: ./Dockerfile
9
+ ports:
10
+ - 8080
11
+ environment:
12
+ - hello
9
13
  service-b:
10
14
  image: service-a
11
15
  build: .
@@ -54,6 +54,7 @@ module BuildLabels
54
54
  def extend_compose(compose_text)
55
55
  compose = YAML.load compose_text
56
56
  compose['services'].each do |name, service|
57
+ service.delete_if {|k, v| !%w[image build].include? k }
57
58
  next unless service['build']
58
59
  if service['build'].class == String
59
60
  service['build'] = { 'context' => service['build'] }
@@ -68,9 +69,7 @@ module BuildLabels
68
69
  end
69
70
  end
70
71
  end
71
- compose['services'].delete_if do |name, svc|
72
- ! svc.key?('build')
73
- end
72
+ compose['services'].delete_if do |name, svc| ! svc.key?('build') end
74
73
  puts compose.to_yaml
75
74
  end
76
75
  end
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module BuildLabels
2
2
  class Builder
3
- VERSION = '0.0.15'
3
+ VERSION = '0.0.16'
4
4
  end
5
5
  end
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.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artyom B
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-26 00:00:00.000000000 Z
11
+ date: 2024-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake