rops 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/config.rb +1 -2
- data/lib/image.rb +1 -1
- 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: 677ba9efdca09746476e2a76a9db789b2d2447299c4db042abf8a6efb006daa8
|
4
|
+
data.tar.gz: 582cf70c64c5fb0b406493b6f0de6c1de3fc70c397f3e242c1698ce8c4d47a57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e08c7745eeb866456a74c87235393ee6236d25327c6cf28a4cbd48493f456fe34d8403f94563f813a6f307cebddc74b7410d9a710fbf3e148bfacffe90dac20
|
7
|
+
data.tar.gz: fe9ae57e5109c786b9dca9fc98bc17d9fcfd9c84c8ff8db04f5a04dba4b6c8c976c8f775d5f4f96b4c11e58d8d9ee62f17f87b437e9e14ae53f370fedd71c2a9
|
data/Gemfile.lock
CHANGED
data/lib/config.rb
CHANGED
@@ -11,8 +11,6 @@ class Config
|
|
11
11
|
'registry' => 'docker.io/r360',
|
12
12
|
'default_context' => 'staging',
|
13
13
|
'production_context' => 'production',
|
14
|
-
'images' => [],
|
15
|
-
'contexts' => {},
|
16
14
|
}.freeze
|
17
15
|
|
18
16
|
attr_reader :repository, :registry, :default_branch, :default_context, :production_context, :ssh_host
|
@@ -34,6 +32,7 @@ class Config
|
|
34
32
|
Image.new(name: name, repository: repository, dockerfile: dockerfile, registry: registry, commit: nil, tag: nil)
|
35
33
|
end
|
36
34
|
|
35
|
+
contexts ||= {}
|
37
36
|
@contexts = HashWithIndifferentAccess.new(contexts.compact)
|
38
37
|
@contexts.each_value do |context|
|
39
38
|
notify = context[:notify]
|
data/lib/image.rb
CHANGED
@@ -64,7 +64,7 @@ class Image < Buildable
|
|
64
64
|
if @remote_exists.nil?
|
65
65
|
# this fails to parse the manifest of some images (built with Podman?), and gives warnings on others
|
66
66
|
_stdout, stderr, status = Open3.capture3("DOCKER_CLI_EXPERIMENTAL=enabled #{Deployer.docker} manifest inspect #{remote_image}")
|
67
|
-
if status.success? || stderr.
|
67
|
+
if status.success? || stderr.match(/error\W+parsing manifest blob/i)
|
68
68
|
@remote_exists = true
|
69
69
|
else
|
70
70
|
puts stderr if stderr.present? && !stderr.include?('manifest unknown') && !stderr.include?('no such manifest')
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Sloan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|