pfab 0.58.20 → 0.58.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/pfab/cli.rb +26 -12
- data/lib/pfab/version.rb +1 -1
- data/pfab.gemspec +3 -3
- 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: b95489ea1ec8b92010346e1f047bac0cea32f43e36231e2bb045a945ad1ab34a
|
4
|
+
data.tar.gz: 8dbe7de91271fdadf90576e238e622b41784b6dc337a28ef53362597d71bfc09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cd9f03a768870ee348a34eadb8d6d369aef8f1971657d6bd9d82a4e60b9773060c1d25ea471d8bcda7acf0253600487f13db77173fb3b35b32785519d5545fc
|
7
|
+
data.tar.gz: 9dabbe1f5a0364af6ec89dc82764a1e0cd6bf72ae2a26c105ac55d1ab0e3e3ee1b7117b49b167ccd7bf03107d5adec19fca8f3b6f6752eee6e64a77068451bff
|
data/Gemfile.lock
CHANGED
@@ -72,12 +72,12 @@ GEM
|
|
72
72
|
kamelcase (0.0.2)
|
73
73
|
semver2 (~> 3)
|
74
74
|
method_source (1.0.0)
|
75
|
-
mini_portile2 (2.8.
|
75
|
+
mini_portile2 (2.8.9)
|
76
76
|
minitest (5.22.3)
|
77
77
|
multi_json (1.15.0)
|
78
78
|
multi_xml (0.6.0)
|
79
79
|
multipart-post (2.1.1)
|
80
|
-
nokogiri (1.18.
|
80
|
+
nokogiri (1.18.9)
|
81
81
|
mini_portile2 (~> 2.8.2)
|
82
82
|
racc (~> 1.4)
|
83
83
|
oauth2 (1.4.11)
|
data/lib/pfab/cli.rb
CHANGED
@@ -356,21 +356,35 @@ module Pfab
|
|
356
356
|
say "Docker registry caching not available - docker-container driver not found. Set up with: docker buildx create --driver docker-container --use"
|
357
357
|
end
|
358
358
|
|
359
|
-
|
360
|
-
|
361
|
-
|
359
|
+
if docker_container_driver_available?
|
360
|
+
say "Using docker-container driver - building and pushing directly to avoid local tagging issues"
|
361
|
+
# When using docker-container driver, build and push directly since image won't be in local docker
|
362
|
+
# Use --output to directly specify registry destination without tags
|
363
|
+
build_cmd = "docker buildx build --output type=registry,name=#{full_image_name} --platform linux/amd64 #{build_args} #{cache_args} ."
|
364
|
+
puts build_cmd
|
365
|
+
result = system(build_cmd)
|
366
|
+
|
367
|
+
puts "Build Result #{result}"
|
368
|
+
return result
|
369
|
+
else
|
370
|
+
say "Using default docker driver - building locally then tagging and pushing"
|
371
|
+
# Traditional build, tag, and push workflow for local docker
|
372
|
+
build_cmd = "docker buildx build --tag #{image_name} --platform linux/amd64 #{build_args} #{cache_args} ."
|
373
|
+
puts build_cmd
|
374
|
+
result = system(build_cmd)
|
362
375
|
|
363
|
-
|
376
|
+
puts "Build Result #{result}"
|
364
377
|
|
365
|
-
|
366
|
-
|
367
|
-
|
378
|
+
if result
|
379
|
+
puts_and_system "docker tag #{image_name} #{image_name}:#{rev}"
|
380
|
+
puts_and_system "docker tag #{image_name}:#{rev} #{full_image_name}"
|
368
381
|
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
382
|
+
puts_and_system "docker push #{container_repository}/#{image_name}:#{rev}"
|
383
|
+
return true
|
384
|
+
else
|
385
|
+
say "Build Did Not Succeed"
|
386
|
+
return false
|
387
|
+
end
|
374
388
|
end
|
375
389
|
|
376
390
|
end
|
data/lib/pfab/version.rb
CHANGED
data/pfab.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: pfab 0.58.
|
5
|
+
# stub: pfab 0.58.22 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "pfab".freeze
|
9
|
-
s.version = "0.58.
|
9
|
+
s.version = "0.58.22".freeze
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Jeff Dwyer".freeze]
|
14
|
-
s.date = "2025-08-
|
14
|
+
s.date = "2025-08-27"
|
15
15
|
s.description = "k8s helper".freeze
|
16
16
|
s.email = "jdwyer@prefab.cloud".freeze
|
17
17
|
s.executables = ["pfab".freeze]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pfab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.58.
|
4
|
+
version: 0.58.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Dwyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|