potamus 1.0.1 → 1.0.2

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: 7a3c4cf3b0362cd1fdf87c032bab56d64b80458f9478b6027f6a0403663aa79e
4
- data.tar.gz: aa0e6f3aec232def467de7d43b5f98eb495d90fe57c89e11bcf054677562564b
3
+ metadata.gz: 51159776076fbee6a1c2c7ff26043f81e2061b147647a40d770cc47157556b1d
4
+ data.tar.gz: f250543f3281e2ecc06db5621fb5d222fb396e992e1b6281f435273910144d4a
5
5
  SHA512:
6
- metadata.gz: 47e7a8cdd7a87c94ee4f469879ef9974d4e2108b40addbc11efd675d06bcf5c2224a13a058c6dc76cf1fea77cae40713517425516c39531776eca21964670acd
7
- data.tar.gz: 8187c07c7ac30b96739a48c9ca537be4575d3e6cd9e7080ddcb4c28abedd0530f0776127c3ddfb30233fe1ca38cdbc7cda914265f409bc8e6426d9d759903da6
6
+ metadata.gz: 6b2a84fd5f1cbcd293e14453498ff30c3a9ce060c9007ac8d2e5d88951326c5f5ffbdb66a401aa3e4fe8f1a2e7afd37556b445860f8ca312b95dbe14a6238f58
7
+ data.tar.gz: 49c7ecccde6e1191b2cce5da45a3767e8a183950afd0dd13a2ab50e667844e557377901a0eb98b81d8346f7a2176ff6e32292433277795722d9e7474da7abe0a
@@ -60,6 +60,18 @@ module Potamus
60
60
  commit == remote_commit
61
61
  end
62
62
 
63
+ def buildkit?
64
+ @options['buildkit'] == true
65
+ end
66
+
67
+ def build_options
68
+ if @options['build_options'].is_a?(Array)
69
+ @options['build_options'].map(&:to_s).join(' ')
70
+ else
71
+ @options['build_options']
72
+ end
73
+ end
74
+
63
75
  def branch
64
76
  stdout, stderr, status = Open3.capture3("cd #{@root} && git symbolic-ref HEAD")
65
77
  unless status.success?
@@ -73,10 +85,12 @@ module Potamus
73
85
  [
74
86
  "cd #{@root}",
75
87
  '&&',
88
+ buildkit? ? 'DOCKER_BUILDKIT=1' : nil,
76
89
  'docker', 'build', '.', '-t', image_name_with_commit,
77
90
  '--build-arg', 'commit_ref=' + commit,
78
- '--build-arg', 'branch=' + branch
79
- ].join(' ')
91
+ '--build-arg', 'branch=' + branch,
92
+ build_options
93
+ ].compact.join(' ')
80
94
  end
81
95
 
82
96
  def tags
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Potamus
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: potamus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDZDCCAkygAwIBAgIBATANBgkqhkiG9w0BAQUFADA8MQswCQYDVQQDDAJtZTEZ
14
- MBcGCgmSJomT8ixkARkWCWFkYW1jb29rZTESMBAGCgmSJomT8ixkARkWAmlvMB4X
15
- DTE5MDUxNDEzNTIxM1oXDTIwMDUxMzEzNTIxM1owPDELMAkGA1UEAwwCbWUxGTAX
16
- BgoJkiaJk/IsZAEZFglhZGFtY29va2UxEjAQBgoJkiaJk/IsZAEZFgJpbzCCASIw
17
- DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMUohRlPw3iIOhWZq+qf5N1ATm1H
18
- 7gBO4TpsUrw/FL/+urFExzt1+4MPfiKjILge48vKpjoTfuZusRsOQebaFidOfmhk
19
- sEqa941CvN3OeUYARA53ORlmoLDLmdcrxq430+woFp4uuSYwim/2YQgIMdgiOTqs
20
- cHaM9yh/xUGMnH4lB9bBDNfggMmkSFb6P8Ax4rvdX3EVv5P58RHwHszd+UI4fyy9
21
- 0W143m6ntNmqena4ZOc7HtWtRyDHHXXzlGgmghKEZgOA+/LO53VHp+cM0JqB7lq5
22
- ZxN43fQrIT5yY9Dy7dRBeiDo53WNJPspa5soEivCBVYstMqfd+LGk/BnsyMCAwEA
23
- AaNxMG8wCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFGlRGerNfr6J
24
- Dprgl6DQ3kLvgVvPMBoGA1UdEQQTMBGBD21lQGFkYW1jb29rZS5pbzAaBgNVHRIE
25
- EzARgQ9tZUBhZGFtY29va2UuaW8wDQYJKoZIhvcNAQEFBQADggEBAK2TQPMeW9qh
26
- NDNoVbbplfSc8/uscSP2DfssCbhXQqeDfF2z+kQpxv8iAc++KTlotqOaX5A6RvLb
27
- NvuwMHPJRQJ2e8rbuN8Sh3tUjbkAEv3SFw4hqbKmtp0j2oKBU0dxHWNfp+5ulh2l
28
- UXnQAt4zg3v1hTD1VrwLqG/hyk9xAaWB38lEDBuPhLrDIdDJklg9bD1E2TUvoMrg
29
- L6TIbdP1TRrxINO1D9GzboR+OuWos7qMLBEEbjat/fQchYrW1KLcHIUCyrGkZTLm
30
- 3wUJNGnT5XYq+qvTqmjkTSTfdGvZCM63C6bGdN5CAyMokGOOatGqyCMAONolWnfC
31
- gm3t2GWWrxY=
32
- -----END CERTIFICATE-----
33
- date: 2020-02-20 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2020-05-18 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: swamp-cli
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- ��E�7+�Պ��}�Us+��!��,��_��ʑ�k���$��Oht��-��s��l�?��H�Ç�!ݒ�Sث��ב��k[��:��� ȇjW�5�>Kw���)���5>�%4��m醯 �~�n%e-a�@�4�p���^fn)�5pq�XRL���8����
2
- ���X�4�`���upk�oNHgJh��bO.�;�gm<2��k �\rZ�l|ı,sq_J����AF�}��Y׊Bs%�o@���7���8�~�F�=�LQ