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 +4 -4
- data/lib/potamus/config.rb +16 -2
- data/lib/potamus/version.rb +1 -1
- metadata +3 -25
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51159776076fbee6a1c2c7ff26043f81e2061b147647a40d770cc47157556b1d
|
4
|
+
data.tar.gz: f250543f3281e2ecc06db5621fb5d222fb396e992e1b6281f435273910144d4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b2a84fd5f1cbcd293e14453498ff30c3a9ce060c9007ac8d2e5d88951326c5f5ffbdb66a401aa3e4fe8f1a2e7afd37556b445860f8ca312b95dbe14a6238f58
|
7
|
+
data.tar.gz: 49c7ecccde6e1191b2cce5da45a3767e8a183950afd0dd13a2ab50e667844e557377901a0eb98b81d8346f7a2176ff6e32292433277795722d9e7474da7abe0a
|
data/lib/potamus/config.rb
CHANGED
@@ -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
|
-
|
91
|
+
'--build-arg', 'branch=' + branch,
|
92
|
+
build_options
|
93
|
+
].compact.join(' ')
|
80
94
|
end
|
81
95
|
|
82
96
|
def tags
|
data/lib/potamus/version.rb
CHANGED
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.
|
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
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED