Skip to content

Commit 62748ff

Browse files
author
qount25
committed
Pgpb::Deb:Builder pull image unless it exists
1 parent 0b2dd51 commit 62748ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pgpm/deb/builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Builder
66

77
def initialize(spec)
88
@spec = spec
9-
@image_name = "pgpm-debian12"
9+
@image_name = "quay.io/qount25/pgpm-debian12"
1010
@container_name = "pgpm-debian12_build-#{Time.now.to_i}_#{rand(10000)}"
1111
end
1212

@@ -38,7 +38,7 @@ def create_container
3838
system("podman image exists #{@image_name}")
3939
if $?.to_i > 0 # image doesn't exist -- pull image from a remote repository
4040
puts " Pulling image #{@image_name}..."
41-
# TODO
41+
system("podman pull quay.io/qount25/pgpm-debian12")
4242
else
4343
puts " Image #{@image_name} already exists! OK"
4444
end

0 commit comments

Comments
 (0)