retag 0.2.4.292196 → 0.2.6.428161
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 +75 -58
- data/lib/retag/image.rb +4 -2
- data/lib/retag/utils.rb +3 -0
- data/lib/retag/version.rb +1 -1
- data/retag.gemspec +2 -1
- metadata +18 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6957db8432f5351b2f37c70637485b0b02483bc0ca75b88ae1d207af5bb1cb9
|
|
4
|
+
data.tar.gz: 4f41c22f3f31189ca6a34acc6d408b294059408ad1130771c153754c7c31df13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 939c5e6e62eb46d32295b3cd5d66d15b2b696936e601ceb5812974d3cbc7a6d55796f5da3851fd301c9d65e869d6b03d20392dbf14604cb6390000c206c6f522
|
|
7
|
+
data.tar.gz: 4097ee92beea1be890ee78086102c8482c5c1b4e66724b671d23c12f921b5b6f77fc3c16dbb906a2f93978a6b93912379b84deacad84f55e09c20df2168be946
|
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
retag (0.2.
|
|
5
|
-
activesupport (
|
|
4
|
+
retag (0.2.6)
|
|
5
|
+
activesupport (> 6.0)
|
|
6
6
|
colorize (~> 0.8.1)
|
|
7
7
|
gitlab (< 5.0)
|
|
8
8
|
json
|
|
9
9
|
logger
|
|
10
10
|
multi_xml (~> 0.6.0)
|
|
11
|
+
mutex_m
|
|
11
12
|
thor
|
|
12
13
|
uri
|
|
13
14
|
yaml
|
|
@@ -16,99 +17,115 @@ PATH
|
|
|
16
17
|
GEM
|
|
17
18
|
remote: https://rubygems.org/
|
|
18
19
|
specs:
|
|
19
|
-
activesupport (
|
|
20
|
-
|
|
20
|
+
activesupport (8.1.4.1)
|
|
21
|
+
base64
|
|
22
|
+
bigdecimal
|
|
23
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
24
|
+
connection_pool (>= 2.2.5)
|
|
25
|
+
drb
|
|
21
26
|
i18n (>= 1.6, < 2)
|
|
27
|
+
json
|
|
28
|
+
logger (>= 1.4.2)
|
|
22
29
|
minitest (>= 5.1)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
securerandom (>= 0.3)
|
|
31
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
32
|
+
uri (>= 0.13.1)
|
|
33
|
+
addressable (2.10.0)
|
|
34
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
35
|
+
ansi (1.6.1)
|
|
36
|
+
logger
|
|
37
|
+
ast (2.4.3)
|
|
38
|
+
base64 (0.3.0)
|
|
39
|
+
bigdecimal (4.1.3)
|
|
30
40
|
colorize (0.8.1)
|
|
31
|
-
concurrent-ruby (1.3.
|
|
32
|
-
|
|
41
|
+
concurrent-ruby (1.3.8)
|
|
42
|
+
connection_pool (3.0.3)
|
|
43
|
+
crack (1.0.1)
|
|
33
44
|
bigdecimal
|
|
34
45
|
rexml
|
|
35
|
-
csv (3.3.
|
|
36
|
-
diff-lcs (1.
|
|
37
|
-
|
|
46
|
+
csv (3.3.7)
|
|
47
|
+
diff-lcs (1.6.2)
|
|
48
|
+
drb (2.2.3)
|
|
38
49
|
gitlab (4.20.1)
|
|
39
50
|
httparty (~> 0.20)
|
|
40
51
|
terminal-table (>= 1.5.1)
|
|
41
|
-
hashdiff (1.
|
|
42
|
-
httparty (0.
|
|
52
|
+
hashdiff (1.3.0)
|
|
53
|
+
httparty (0.25.1)
|
|
43
54
|
csv
|
|
44
55
|
mini_mime (>= 1.0.0)
|
|
45
56
|
multi_xml (>= 0.5.2)
|
|
46
|
-
i18n (1.
|
|
57
|
+
i18n (1.15.2)
|
|
47
58
|
concurrent-ruby (~> 1.0)
|
|
48
|
-
json (2.
|
|
49
|
-
language_server-protocol (3.17.0.
|
|
50
|
-
|
|
59
|
+
json (3.2.0)
|
|
60
|
+
language_server-protocol (3.17.0.6)
|
|
61
|
+
lint_roller (1.1.0)
|
|
62
|
+
logger (1.7.0)
|
|
51
63
|
mini_mime (1.1.5)
|
|
52
|
-
minitest (
|
|
64
|
+
minitest (6.1.0)
|
|
65
|
+
drb (~> 2.0)
|
|
66
|
+
prism (>= 1.5, < 3)
|
|
53
67
|
multi_xml (0.6.0)
|
|
54
|
-
|
|
55
|
-
|
|
68
|
+
mutex_m (0.3.0)
|
|
69
|
+
parallel (2.3.0)
|
|
70
|
+
parser (3.3.14.0)
|
|
56
71
|
ast (~> 2.4.1)
|
|
57
72
|
racc
|
|
58
|
-
|
|
73
|
+
prism (2.1.0)
|
|
74
|
+
prism (2.1.0-x86_64-linux-gnu)
|
|
75
|
+
public_suffix (7.0.5)
|
|
59
76
|
racc (1.8.1)
|
|
60
77
|
rainbow (3.1.1)
|
|
61
|
-
rake (13.2
|
|
62
|
-
regexp_parser (2.
|
|
63
|
-
rexml (3.4.
|
|
64
|
-
rspec (3.13.
|
|
78
|
+
rake (13.4.2)
|
|
79
|
+
regexp_parser (2.13.4)
|
|
80
|
+
rexml (3.4.4)
|
|
81
|
+
rspec (3.13.2)
|
|
65
82
|
rspec-core (~> 3.13.0)
|
|
66
83
|
rspec-expectations (~> 3.13.0)
|
|
67
84
|
rspec-mocks (~> 3.13.0)
|
|
68
|
-
rspec-core (3.13.
|
|
85
|
+
rspec-core (3.13.7)
|
|
69
86
|
rspec-support (~> 3.13.0)
|
|
70
|
-
rspec-expectations (3.13.
|
|
87
|
+
rspec-expectations (3.13.6)
|
|
71
88
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
72
89
|
rspec-support (~> 3.13.0)
|
|
73
|
-
rspec-mocks (3.13.
|
|
90
|
+
rspec-mocks (3.13.9)
|
|
74
91
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
75
92
|
rspec-support (~> 3.13.0)
|
|
76
|
-
rspec-support (3.13.
|
|
77
|
-
rspec_junit_formatter (0.
|
|
78
|
-
rspec-core (>=
|
|
79
|
-
rubocop (1.
|
|
80
|
-
json (
|
|
81
|
-
language_server-protocol (
|
|
82
|
-
|
|
93
|
+
rspec-support (3.13.8)
|
|
94
|
+
rspec_junit_formatter (0.8.0)
|
|
95
|
+
rspec-core (>= 3.13, < 4)
|
|
96
|
+
rubocop (1.92.3)
|
|
97
|
+
json (>= 2.3)
|
|
98
|
+
language_server-protocol (~> 3.17.0.2)
|
|
99
|
+
lint_roller (~> 1.1.0)
|
|
100
|
+
parallel (>= 1.10)
|
|
83
101
|
parser (>= 3.3.0.2)
|
|
84
102
|
rainbow (>= 2.2.2, < 4.0)
|
|
85
|
-
regexp_parser (>= 2.
|
|
86
|
-
rubocop-ast (>= 1.
|
|
103
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
104
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
87
105
|
ruby-progressbar (~> 1.7)
|
|
88
106
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
89
|
-
rubocop-ast (1.
|
|
90
|
-
|
|
107
|
+
rubocop-ast (1.54.0)
|
|
108
|
+
ast (~> 2.4)
|
|
109
|
+
parser (>= 3.3.7.2)
|
|
110
|
+
prism (>= 1.7)
|
|
111
|
+
racc
|
|
91
112
|
ruby-progressbar (1.13.0)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
simplecov_json_formatter (~> 0.1)
|
|
96
|
-
simplecov-console (0.9.2)
|
|
113
|
+
securerandom (0.4.1)
|
|
114
|
+
simplecov (1.3.2)
|
|
115
|
+
simplecov-console (0.9.5)
|
|
97
116
|
ansi
|
|
98
117
|
simplecov
|
|
99
118
|
terminal-table
|
|
100
|
-
simplecov-html (0.13.1)
|
|
101
|
-
simplecov_json_formatter (0.1.4)
|
|
102
119
|
terminal-table (4.0.0)
|
|
103
120
|
unicode-display_width (>= 1.1.1, < 4)
|
|
104
|
-
thor (1.
|
|
121
|
+
thor (1.5.0)
|
|
105
122
|
tzinfo (2.0.6)
|
|
106
123
|
concurrent-ruby (~> 1.0)
|
|
107
|
-
unicode-display_width (3.
|
|
108
|
-
unicode-emoji (~> 4.
|
|
109
|
-
unicode-emoji (4.0
|
|
110
|
-
uri (1.
|
|
111
|
-
webmock (3.
|
|
124
|
+
unicode-display_width (3.3.0)
|
|
125
|
+
unicode-emoji (~> 4.3)
|
|
126
|
+
unicode-emoji (4.3.0)
|
|
127
|
+
uri (1.1.2)
|
|
128
|
+
webmock (3.41.0)
|
|
112
129
|
addressable (>= 2.8.0)
|
|
113
130
|
crack (>= 0.3.2)
|
|
114
131
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
@@ -131,4 +148,4 @@ DEPENDENCIES
|
|
|
131
148
|
webmock
|
|
132
149
|
|
|
133
150
|
BUNDLED WITH
|
|
134
|
-
2.
|
|
151
|
+
2.5.23
|
data/lib/retag/image.rb
CHANGED
|
@@ -42,9 +42,11 @@ module Retag
|
|
|
42
42
|
raise "Unable to promote image #{repo} -> #{newrepo} with #{api.inspect} api: Unimplemented"
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
newregistry = registry.split('/').join('-')
|
|
46
|
+
newrepo = "#{newproject}/#{newregistry}"
|
|
47
|
+
|
|
46
48
|
result = cmd!(
|
|
47
|
-
"curl -s -u '#{dockerauth(uri.host)}' -X POST '#{uri}/api/v2.0/projects/#{newproject}/repositories/#{
|
|
49
|
+
"curl -s -u '#{dockerauth(uri.host)}' -X POST '#{uri}/api/v2.0/projects/#{newproject}/repositories/#{newregistry}/artifacts?from=#{repo}:#{newtag}' -o -", capture: true
|
|
48
50
|
).strip
|
|
49
51
|
end
|
|
50
52
|
|
data/lib/retag/utils.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require 'base64'
|
|
2
2
|
require 'open3'
|
|
3
|
+
require 'colorize'
|
|
3
4
|
|
|
4
5
|
module Retag
|
|
5
6
|
module Utils
|
|
@@ -12,6 +13,8 @@ module Retag
|
|
|
12
13
|
|
|
13
14
|
logger.tagged("CMD#{tag}".colorize(:light_black)) { logger.debug cmd.colorize(:light_black) }
|
|
14
15
|
|
|
16
|
+
return output if $dryrun
|
|
17
|
+
|
|
15
18
|
code = Open3.popen3(cmd) do |stdin, stdout, stderr, thr|
|
|
16
19
|
stdin.close_write
|
|
17
20
|
files = [stdout, stderr]
|
data/lib/retag/version.rb
CHANGED
data/retag.gemspec
CHANGED
|
@@ -30,10 +30,11 @@ Gem::Specification.new 'retag' do |spec|
|
|
|
30
30
|
spec.add_development_dependency 'simplecov-console'
|
|
31
31
|
spec.add_development_dependency 'webmock'
|
|
32
32
|
|
|
33
|
-
spec.add_runtime_dependency 'activesupport', '
|
|
33
|
+
spec.add_runtime_dependency 'activesupport', '> 6.0'
|
|
34
34
|
spec.add_runtime_dependency 'colorize', '~> 0.8.1'
|
|
35
35
|
spec.add_runtime_dependency 'gitlab', '< 5.0'
|
|
36
36
|
spec.add_runtime_dependency 'json'
|
|
37
|
+
spec.add_runtime_dependency 'mutex_m'
|
|
37
38
|
spec.add_runtime_dependency 'thor'
|
|
38
39
|
spec.add_runtime_dependency 'uri'
|
|
39
40
|
spec.add_runtime_dependency 'yaml'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: retag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.6.428161
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samoilenko Yuri
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -126,14 +126,14 @@ dependencies:
|
|
|
126
126
|
name: activesupport
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
128
128
|
requirements:
|
|
129
|
-
- - "
|
|
129
|
+
- - ">"
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
131
|
version: '6.0'
|
|
132
132
|
type: :runtime
|
|
133
133
|
prerelease: false
|
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
|
-
- - "
|
|
136
|
+
- - ">"
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '6.0'
|
|
139
139
|
- !ruby/object:Gem::Dependency
|
|
@@ -178,6 +178,20 @@ dependencies:
|
|
|
178
178
|
- - ">="
|
|
179
179
|
- !ruby/object:Gem::Version
|
|
180
180
|
version: '0'
|
|
181
|
+
- !ruby/object:Gem::Dependency
|
|
182
|
+
name: mutex_m
|
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
- - ">="
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: '0'
|
|
188
|
+
type: :runtime
|
|
189
|
+
prerelease: false
|
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
+
requirements:
|
|
192
|
+
- - ">="
|
|
193
|
+
- !ruby/object:Gem::Version
|
|
194
|
+
version: '0'
|
|
181
195
|
- !ruby/object:Gem::Dependency
|
|
182
196
|
name: thor
|
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|