uffizzi-cli 0.11.5 → 0.12.0
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/config/uffizzi.rb +1 -0
- data/lib/uffizzi/cli/connect.rb +78 -43
- data/lib/uffizzi/cli/disconnect.rb +4 -1
- data/lib/uffizzi/helpers/connect_helper.rb +45 -0
- data/lib/uffizzi/version.rb +1 -1
- data/man/uffizzi-connect +30 -31
- data/man/uffizzi-connect-acr +27 -25
- data/man/uffizzi-connect-acr.ronn +33 -19
- data/man/uffizzi-connect-docker-hub +24 -24
- data/man/uffizzi-connect-docker-hub.ronn +30 -18
- data/man/uffizzi-connect-docker-registry +37 -0
- data/man/uffizzi-connect-docker-registry.ronn +41 -0
- data/man/uffizzi-connect-ecr +27 -25
- data/man/uffizzi-connect-ecr.ronn +33 -19
- data/man/uffizzi-connect-gcr +20 -29
- data/man/uffizzi-connect-gcr.ronn +26 -22
- data/man/uffizzi-connect-ghcr +23 -33
- data/man/uffizzi-connect-ghcr.ronn +27 -23
- data/man/uffizzi-connect.ronn +28 -20
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c27a1f65cd69d407dc2f086733a20baaf6e129b7433322ac61682f6b8a1fa54e
|
4
|
+
data.tar.gz: 61c6860dbc035009ee6197f353c05d0af95eda6d6f77b67d25f672ba954e114f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 709d000e6701f32d3dcaa3745c68d2eb63695dba2dd8ef939201569605bb121fdd3422d730d3bdc2687a33cc81810b97a3a4f4841187aac68547824293523173
|
7
|
+
data.tar.gz: 1b0ae241adab3fb770f25cca8709ae779b5c8de16056fa71e6242d470123550b6cacc920f1e2b9474951323b72d1d18160a840ed64c4814469eb89e138d0c3d5
|
data/config/uffizzi.rb
CHANGED
@@ -19,6 +19,7 @@ module Uffizzi
|
|
19
19
|
google: 'UffizziCore::Credential::Google',
|
20
20
|
amazon: 'UffizziCore::Credential::Amazon',
|
21
21
|
github_registry: 'UffizziCore::Credential::GithubContainerRegistry',
|
22
|
+
docker_registry: 'UffizziCore::Credential::DockerRegistry',
|
22
23
|
}
|
23
24
|
config.default_server = 'app.uffizzi.com'
|
24
25
|
end
|
data/lib/uffizzi/cli/connect.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'uffizzi'
|
4
|
+
require 'uffizzi/helpers/connect_helper'
|
4
5
|
|
5
6
|
module Uffizzi
|
6
7
|
class Cli::Connect < Thor
|
@@ -21,42 +22,75 @@ module Uffizzi
|
|
21
22
|
method_option :skip_raise_existence_error, type: :boolean, default: false,
|
22
23
|
desc: 'Skip raising an error within check the credential'
|
23
24
|
method_option :update_credential_if_exists, type: :boolean, default: false
|
25
|
+
method_option :username, type: :string, aliases: :u
|
26
|
+
method_option :password, type: :string, aliases: :p
|
24
27
|
def docker_hub
|
25
28
|
type = Uffizzi.configuration.credential_types[:dockerhub]
|
26
29
|
credential_exists = credential_exists?(type)
|
27
30
|
handle_existing_credential_options('docker-hub') if credential_exists
|
28
31
|
|
29
|
-
username =
|
30
|
-
password = ENV['DOCKERHUB_PASSWORD'] || Uffizzi.ui.ask('Password:', echo: false)
|
32
|
+
username, password = Uffizzi::ConnectHelper.get_docker_hub_data(options)
|
31
33
|
|
32
34
|
params = {
|
33
35
|
username: username,
|
34
36
|
password: password,
|
35
37
|
type: type,
|
36
38
|
}
|
39
|
+
server = ConfigFile.read_option(:server)
|
40
|
+
|
41
|
+
response = if credential_exists
|
42
|
+
update_credential(server, params, type)
|
43
|
+
else
|
44
|
+
create_credential(server, params)
|
45
|
+
end
|
46
|
+
|
47
|
+
handle_result_for('Docker Hub', response)
|
48
|
+
end
|
49
|
+
|
50
|
+
desc 'docker-registry', 'Connect to any registry implementing the Docker Registry HTTP API protocol'
|
51
|
+
method_option :skip_raise_existence_error, type: :boolean, default: false,
|
52
|
+
desc: 'Skip raising an error within check the credential'
|
53
|
+
method_option :update_credential_if_exists, type: :boolean, default: false
|
54
|
+
method_option :registry, type: :string, aliases: :r
|
55
|
+
method_option :username, type: :string, aliases: :u
|
56
|
+
method_option :password, type: :string, aliases: :p
|
57
|
+
def docker_registry
|
58
|
+
type = Uffizzi.configuration.credential_types[:docker_registry]
|
59
|
+
credential_exists = credential_exists?(type)
|
60
|
+
handle_existing_credential_options('docker-registry') if credential_exists
|
37
61
|
|
62
|
+
registry_url, username, password = Uffizzi::ConnectHelper.get_docker_registry_data(options)
|
63
|
+
|
64
|
+
params = {
|
65
|
+
registry_url: prepare_registry_url(registry_url),
|
66
|
+
username: username,
|
67
|
+
password: password,
|
68
|
+
type: type,
|
69
|
+
}
|
38
70
|
server = ConfigFile.read_option(:server)
|
39
|
-
response = create_or_update_credential(server, params, create: !credential_exists)
|
40
71
|
|
41
|
-
if
|
42
|
-
|
72
|
+
response = if credential_exists
|
73
|
+
update_credential(server, params, type)
|
43
74
|
else
|
44
|
-
|
75
|
+
create_credential(server, params)
|
45
76
|
end
|
77
|
+
|
78
|
+
handle_result_for('Docker Registry', response)
|
46
79
|
end
|
47
80
|
|
48
81
|
desc 'acr', 'Connect to Azure Container Registry (azurecr.io)'
|
49
82
|
method_option :skip_raise_existence_error, type: :boolean, default: false,
|
50
83
|
desc: 'Skip raising an error within check the credential'
|
51
84
|
method_option :update_credential_if_exists, type: :boolean, default: false
|
85
|
+
method_option :registry, type: :string, aliases: :r
|
86
|
+
method_option :username, type: :string, aliases: :u
|
87
|
+
method_option :password, type: :string, aliases: :p
|
52
88
|
def acr
|
53
89
|
type = Uffizzi.configuration.credential_types[:azure]
|
54
90
|
credential_exists = credential_exists?(type)
|
55
91
|
handle_existing_credential_options('acr') if credential_exists
|
56
92
|
|
57
|
-
registry_url
|
58
|
-
username = ENV['ACR_USERNAME'] || Uffizzi.ui.ask('Docker ID:')
|
59
|
-
password = ENV['ACR_PASSWORD'] || Uffizzi.ui.ask('Password/Access Token:', echo: false)
|
93
|
+
registry_url, username, password = Uffizzi::ConnectHelper.get_acr_data(options)
|
60
94
|
|
61
95
|
params = {
|
62
96
|
username: username,
|
@@ -64,45 +98,46 @@ module Uffizzi
|
|
64
98
|
registry_url: prepare_registry_url(registry_url),
|
65
99
|
type: type,
|
66
100
|
}
|
67
|
-
|
68
101
|
server = ConfigFile.read_option(:server)
|
69
|
-
response = create_or_update_credential(server, params, create: !credential_exists)
|
70
102
|
|
71
|
-
if
|
72
|
-
|
103
|
+
response = if credential_exists
|
104
|
+
update_credential(server, params, type)
|
73
105
|
else
|
74
|
-
|
106
|
+
create_credential(server, params)
|
75
107
|
end
|
108
|
+
|
109
|
+
handle_result_for('ACR', response)
|
76
110
|
end
|
77
111
|
|
78
112
|
desc 'ecr', 'Connect to Amazon Elastic Container Registry'
|
79
113
|
method_option :skip_raise_existence_error, type: :boolean, default: false,
|
80
114
|
desc: 'Skip raising an error within check the credential'
|
81
115
|
method_option :update_credential_if_exists, type: :boolean, default: false
|
116
|
+
method_option :registry, type: :string, aliases: :r
|
117
|
+
method_option :id, type: :string
|
118
|
+
method_option :secret, type: :string, aliases: :s
|
82
119
|
def ecr
|
83
120
|
type = Uffizzi.configuration.credential_types[:amazon]
|
84
121
|
credential_exists = credential_exists?(type)
|
85
122
|
handle_existing_credential_options('ecr') if credential_exists
|
86
123
|
|
87
|
-
registry_url
|
88
|
-
access_key = ENV['AWS_ACCESS_KEY_ID'] || Uffizzi.ui.ask('Access key ID:')
|
89
|
-
secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] || Uffizzi.ui.ask('Secret access key:', echo: false)
|
124
|
+
registry_url, access_key_id, secret_access_key = Uffizzi::ConnectHelper.get_ecr_data(options)
|
90
125
|
|
91
126
|
params = {
|
92
|
-
username:
|
127
|
+
username: access_key_id,
|
93
128
|
password: secret_access_key,
|
94
129
|
registry_url: prepare_registry_url(registry_url),
|
95
130
|
type: type,
|
96
131
|
}
|
97
|
-
|
98
132
|
server = ConfigFile.read_option(:server)
|
99
|
-
response = create_or_update_credential(server, params, create: !credential_exists)
|
100
133
|
|
101
|
-
if
|
102
|
-
|
134
|
+
response = if credential_exists
|
135
|
+
update_credential(server, params, type)
|
103
136
|
else
|
104
|
-
|
137
|
+
create_credential(server, params)
|
105
138
|
end
|
139
|
+
|
140
|
+
handle_result_for('ECR', response)
|
106
141
|
end
|
107
142
|
|
108
143
|
desc 'gcr', 'Connect to Google Container Registry (gcr.io)'
|
@@ -120,15 +155,15 @@ module Uffizzi
|
|
120
155
|
password: credential_content,
|
121
156
|
type: type,
|
122
157
|
}
|
123
|
-
|
124
158
|
server = ConfigFile.read_option(:server)
|
125
|
-
response = create_or_update_credential(server, params, create: !credential_exists)
|
126
159
|
|
127
|
-
if
|
128
|
-
|
160
|
+
response = if credential_exists
|
161
|
+
update_credential(server, params, type)
|
129
162
|
else
|
130
|
-
|
163
|
+
create_credential(server, params)
|
131
164
|
end
|
165
|
+
|
166
|
+
handle_result_for('GCR', response)
|
132
167
|
end
|
133
168
|
|
134
169
|
desc 'ghcr', 'Connect to GitHub Container Registry (ghcr.io)'
|
@@ -142,32 +177,36 @@ module Uffizzi
|
|
142
177
|
credential_exists = credential_exists?(type)
|
143
178
|
handle_existing_credential_options('ghcr') if credential_exists
|
144
179
|
|
145
|
-
username =
|
146
|
-
password = options[:token] || ENV['GITHUB_ACCESS_TOKEN'] || Uffizzi.ui.ask('Access Token:', echo: false)
|
180
|
+
username, password = Uffizzi::ConnectHelper.get_ghcr_data(options)
|
147
181
|
|
148
182
|
params = {
|
149
183
|
username: username,
|
150
184
|
password: password,
|
151
185
|
type: type,
|
152
186
|
}
|
153
|
-
|
154
187
|
server = ConfigFile.read_option(:server)
|
155
|
-
response = create_or_update_credential(server, params, create: !credential_exists)
|
156
188
|
|
157
|
-
if
|
158
|
-
|
189
|
+
response = if credential_exists
|
190
|
+
update_credential(server, params, type)
|
159
191
|
else
|
160
|
-
|
192
|
+
create_credential(server, params)
|
161
193
|
end
|
194
|
+
|
195
|
+
handle_result_for('GHCR', response)
|
162
196
|
end
|
163
197
|
|
164
198
|
map 'list-credentials' => 'list_credentials'
|
165
199
|
map 'docker-hub' => 'docker_hub'
|
200
|
+
map 'docker-registry' => 'docker_registry'
|
166
201
|
|
167
202
|
private
|
168
203
|
|
169
|
-
def
|
170
|
-
ResponseHelper.created?(response) || ResponseHelper.ok?(response)
|
204
|
+
def handle_result_for(credential_type, response)
|
205
|
+
if ResponseHelper.created?(response) || ResponseHelper.ok?(response)
|
206
|
+
print_success_message(credential_type)
|
207
|
+
else
|
208
|
+
ResponseHelper.handle_failed_response(response)
|
209
|
+
end
|
171
210
|
end
|
172
211
|
|
173
212
|
def prepare_registry_url(registry_url)
|
@@ -176,8 +215,8 @@ module Uffizzi
|
|
176
215
|
"https://#{registry_url}"
|
177
216
|
end
|
178
217
|
|
179
|
-
def print_success_message(
|
180
|
-
Uffizzi.ui.say("Successfully connected to #{
|
218
|
+
def print_success_message(credential_type)
|
219
|
+
Uffizzi.ui.say("Successfully connected to #{credential_type}.")
|
181
220
|
end
|
182
221
|
|
183
222
|
def credential_exists?(type)
|
@@ -202,10 +241,6 @@ module Uffizzi
|
|
202
241
|
end
|
203
242
|
end
|
204
243
|
|
205
|
-
def create_or_update_credential(server, params, create: true)
|
206
|
-
create ? create_credential(server, params) : update_credential(server, params, params[:type])
|
207
|
-
end
|
208
|
-
|
209
244
|
def handle_list_credentials_success(response)
|
210
245
|
credentials = response[:body][:credentials]
|
211
246
|
credentials.each do |credential|
|
@@ -10,6 +10,8 @@ module Uffizzi
|
|
10
10
|
connection_type = case credential_type
|
11
11
|
when 'docker-hub'
|
12
12
|
Uffizzi.configuration.credential_types[:dockerhub]
|
13
|
+
when 'docker-registry'
|
14
|
+
Uffizzi.configuration.credential_types[:docker_registry]
|
13
15
|
when 'acr'
|
14
16
|
Uffizzi.configuration.credential_types[:azure]
|
15
17
|
when 'ecr'
|
@@ -25,7 +27,7 @@ module Uffizzi
|
|
25
27
|
response = delete_credential(ConfigFile.read_option(:server), connection_type)
|
26
28
|
|
27
29
|
if ResponseHelper.no_content?(response)
|
28
|
-
Uffizzi.ui.say("Successfully disconnected #{connection_name(credential_type)}
|
30
|
+
Uffizzi.ui.say("Successfully disconnected from #{connection_name(credential_type)}.")
|
29
31
|
else
|
30
32
|
ResponseHelper.handle_failed_response(response)
|
31
33
|
end
|
@@ -36,6 +38,7 @@ module Uffizzi
|
|
36
38
|
def connection_name(credential_type)
|
37
39
|
{
|
38
40
|
'docker-hub' => 'DockerHub',
|
41
|
+
'docker-registry' => 'Docker Registry',
|
39
42
|
'acr' => 'ACR',
|
40
43
|
'ecr' => 'ECR',
|
41
44
|
'gcr' => 'GCR',
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Uffizzi
|
4
|
+
module ConnectHelper
|
5
|
+
class << self
|
6
|
+
def get_docker_registry_data(options)
|
7
|
+
registry_url = options[:registry] || ENV['DOCKER_REGISTRY_URL'] || Uffizzi.ui.ask('Registry Domain:')
|
8
|
+
username = options[:username] || ENV['DOCKER_REGISTRY_USERNAME'] || Uffizzi.ui.ask('Username:')
|
9
|
+
password = options[:password] || ENV['DOCKER_REGISTRY_PASSWORD'] || Uffizzi.ui.ask('Password:', echo: false)
|
10
|
+
|
11
|
+
[registry_url, username, password]
|
12
|
+
end
|
13
|
+
|
14
|
+
def get_docker_hub_data(options)
|
15
|
+
username = options[:username] || ENV['DOCKERHUB_USERNAME'] || Uffizzi.ui.ask('Username:')
|
16
|
+
password = options[:password] || ENV['DOCKERHUB_PASSWORD'] || Uffizzi.ui.ask('Password:', echo: false)
|
17
|
+
|
18
|
+
[username, password]
|
19
|
+
end
|
20
|
+
|
21
|
+
def get_acr_data(options)
|
22
|
+
registry_url = options[:registry] || ENV['ACR_REGISTRY_URL'] || Uffizzi.ui.ask('Registry Domain:')
|
23
|
+
username = options[:username] || ENV['ACR_USERNAME'] || Uffizzi.ui.ask('Docker ID:')
|
24
|
+
password = options[:password] || ENV['ACR_PASSWORD'] || Uffizzi.ui.ask('Password/Access Token:', echo: false)
|
25
|
+
|
26
|
+
[registry_url, username, password]
|
27
|
+
end
|
28
|
+
|
29
|
+
def get_ecr_data(options)
|
30
|
+
registry_url = options[:registry] || ENV['AWS_REGISTRY_URL'] || Uffizzi.ui.ask('Registry Domain:')
|
31
|
+
access_key_id = options[:id] || ENV['AWS_ACCESS_KEY_ID'] || Uffizzi.ui.ask('Access key ID:')
|
32
|
+
secret_access_key = options[:secret] || ENV['AWS_SECRET_ACCESS_KEY'] || Uffizzi.ui.ask('Secret access key:', echo: false)
|
33
|
+
|
34
|
+
[registry_url, access_key_id, secret_access_key]
|
35
|
+
end
|
36
|
+
|
37
|
+
def get_ghcr_data(options)
|
38
|
+
username = options[:username] || ENV['GITHUB_USERNAME'] || Uffizzi.ui.ask('Github Username:')
|
39
|
+
password = options[:token] || ENV['GITHUB_ACCESS_TOKEN'] || Uffizzi.ui.ask('Access Token:', echo: false)
|
40
|
+
|
41
|
+
[username, password]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
data/lib/uffizzi/version.rb
CHANGED
data/man/uffizzi-connect
CHANGED
@@ -1,43 +1,42 @@
|
|
1
1
|
.\" generated with Ronn-NG/v0.9.1
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
3
|
-
.TH "UFFIZZI\-CONNECT" "" "
|
3
|
+
.TH "UFFIZZI\-CONNECT" "" "August 2022" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBuffizzi\-connect\fR \- grant a Uffizzi user account access to external services
|
6
6
|
.SH "SYNOPSIS"
|
7
|
-
|
8
|
-
uffizzi connect COMMAND
|
9
|
-
.fi
|
7
|
+
\fBuffizzi connect\fR COMMAND [\-\-skip\-raise\-existence\-error] [\-\-update\-credential\-if\-exists]
|
10
8
|
.SH "DESCRIPTION"
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
Grants a Uffizzi user account access to external services\.
|
10
|
+
.P
|
14
11
|
For more information on connecting to external services, see:
|
12
|
+
.br
|
15
13
|
https://github\.com/UffizziCloud/uffizzi_cli
|
16
|
-
.fi
|
17
14
|
.SH "COMMANDS"
|
18
|
-
.nf
|
19
15
|
COMMAND is one of the following:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
.
|
16
|
+
.TP
|
17
|
+
\fBacr\fR
|
18
|
+
Connect to Azure Container Registry (azurecr\.io)\.
|
19
|
+
.TP
|
20
|
+
\fBdocker\-hub\fR
|
21
|
+
Connect to Docker Hub (hub\.docker\.com)\.
|
22
|
+
.TP
|
23
|
+
\fBdocker\-registry\fR
|
24
|
+
Connect to any registry implementing the Docker Registry HTTP API protocol
|
25
|
+
.TP
|
26
|
+
\fBecr\fR
|
27
|
+
Connect to Amazon Elastic Container Registry (amazonaws\.com)\.
|
28
|
+
.TP
|
29
|
+
\fBgcr\fR
|
30
|
+
Connect to Google Container Registry (gcr\.io)\.
|
31
|
+
.TP
|
32
|
+
\fBghcr\fR
|
33
|
+
Connect to GitHub Container Registry (ghcr\.io)\.
|
36
34
|
.SH "FLAGS"
|
37
|
-
.
|
38
|
-
\-\-skip\-raise\-existence\-error
|
39
|
-
|
40
|
-
|
41
|
-
|
35
|
+
.TP
|
36
|
+
\fB\-\-skip\-raise\-existence\-error\fR
|
37
|
+
If credential exists, do not raise an exception, just print a message\.
|
38
|
+
.TP
|
39
|
+
\fB\-\-update\-credential\-if\-exists\fR
|
40
|
+
Update credential if it exists\.
|
42
41
|
.P
|
43
|
-
Run \
|
42
|
+
Run \fBuffizzi connect COMMAND \-\-help\fR for more information on a command\.
|
data/man/uffizzi-connect-acr
CHANGED
@@ -1,35 +1,37 @@
|
|
1
1
|
.\" generated with Ronn-NG/v0.9.1
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
3
|
-
.TH "UFFIZZI\-CONNECT\-ACR" "" "
|
3
|
+
.TH "UFFIZZI\-CONNECT\-ACR" "" "August 2022" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBuffizzi\-connect\-acr\fR \- grant a Uffizzi user account access to a private Azure Container Registry (ACR)
|
6
6
|
.SH "SYNOPSIS"
|
7
|
-
|
8
|
-
uffizzi connect acr
|
9
|
-
.fi
|
7
|
+
\fBuffizzi connect acr\fR [\-\-registry=REGISTRY] [\-\-username=USERNAME] [\-\-password=PASSWORD]
|
10
8
|
.SH "DESCRIPTION"
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access to a private Azure Container Registry
|
10
|
+
.P
|
11
|
+
Credentials can be provided interactively or non\-interactively via command options or environment variables:
|
12
|
+
.br
|
13
|
+
\fBACR_REGISTRY_URL\fR, \fBACR_REGISTRY_USERNAME\fR, \fBACR_REGISTRY_PASSWORD\fR
|
14
|
+
.P
|
15
|
+
This command can fail for the following reasons: \- The active user does not have permission to connect external services\. \- The given credentials are invalid\.
|
16
|
+
.P
|
20
17
|
For more information on connecting to external services, see:
|
18
|
+
.br
|
21
19
|
https://github\.com/UffizziCloud/uffizzi_cli
|
22
|
-
|
23
|
-
For detailed instructions on configuring webhooks to send push
|
24
|
-
|
20
|
+
.P
|
21
|
+
For detailed instructions on configuring webhooks to send push notifications to Uffizzi, see:
|
22
|
+
.br
|
25
23
|
https://docs\.uffizzi\.com/guides/container\-registry\-integrations
|
26
|
-
.
|
24
|
+
.SH "OPTIONS"
|
25
|
+
.TP
|
26
|
+
\fB\-r\fR, \fB\-\-registry=<registry>\fR
|
27
|
+
URL of the service\.
|
28
|
+
.TP
|
29
|
+
\fB\-u\fR, \fB\-\-username=<username>\fR
|
30
|
+
Username for the service\.
|
31
|
+
.TP
|
32
|
+
\fB\-p\fR, \fB\-\-password=<password>\fR
|
33
|
+
Password for the service\.
|
27
34
|
.SH "EXAMPLES"
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
password or access token:
|
32
|
-
|
33
|
-
$ uffizzi connect acr
|
34
|
-
.fi
|
35
|
-
|
35
|
+
The following command will prompt the user to enter ACR credentials, including registry domain, Docker ID and password or access token:
|
36
|
+
.P
|
37
|
+
\fBuffizzi connect acr\fR
|
@@ -1,28 +1,42 @@
|
|
1
|
-
uffizzi-connect-acr - grant a Uffizzi user account access to a private Azure Container Registry (ACR)
|
2
|
-
================================================================
|
1
|
+
# uffizzi-connect-acr - grant a Uffizzi user account access to a private Azure Container Registry (ACR)
|
3
2
|
|
4
3
|
## SYNOPSIS
|
5
|
-
|
4
|
+
|
5
|
+
`uffizzi connect acr` [--registry=REGISTRY] [--username=USERNAME] [--password=PASSWORD]
|
6
6
|
|
7
7
|
## DESCRIPTION
|
8
|
-
Given valid credentials, grants a Uffizzi user account access
|
9
|
-
to a private Azure Container Registry
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access
|
10
|
+
to a private Azure Container Registry
|
11
|
+
|
12
|
+
Credentials can be provided interactively or non-interactively
|
13
|
+
via command options or environment variables:
|
14
|
+
`ACR_REGISTRY_URL`, `ACR_REGISTRY_USERNAME`, `ACR_REGISTRY_PASSWORD`
|
15
|
+
|
16
|
+
This command can fail for the following reasons:
|
17
|
+
- The active user does not have permission to connect external services.
|
18
|
+
- The given credentials are invalid.
|
19
|
+
|
20
|
+
For more information on connecting to external services, see:
|
21
|
+
https://github.com/UffizziCloud/uffizzi_cli
|
15
22
|
|
16
|
-
|
17
|
-
|
23
|
+
For detailed instructions on configuring webhooks to send push
|
24
|
+
notifications to Uffizzi, see:
|
25
|
+
https://docs.uffizzi.com/guides/container-registry-integrations
|
18
26
|
|
19
|
-
|
20
|
-
|
21
|
-
|
27
|
+
## OPTIONS
|
28
|
+
|
29
|
+
* `-r`, `--registry=<registry>`:
|
30
|
+
URL of the service.
|
31
|
+
* `-u`, `--username=<username>`:
|
32
|
+
Username for the service.
|
33
|
+
* `-p`, `--password=<password>`:
|
34
|
+
Password for the service.
|
22
35
|
|
23
36
|
## EXAMPLES
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
37
|
+
|
38
|
+
The following command will prompt the user to enter ACR
|
39
|
+
credentials, including registry domain, Docker ID and
|
40
|
+
password or access token:
|
41
|
+
|
42
|
+
`uffizzi connect acr`
|
@@ -1,34 +1,34 @@
|
|
1
1
|
.\" generated with Ronn-NG/v0.9.1
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
3
|
-
.TH "UFFIZZI\-CONNECT\-DOCKER\-HUB" "" "
|
3
|
+
.TH "UFFIZZI\-CONNECT\-DOCKER\-HUB" "" "August 2022" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBuffizzi\-connect\-docker\-hub\fR \- grant a Uffizzi user account access to a private Docker Hub registry\.
|
6
6
|
.SH "SYNOPSIS"
|
7
|
-
|
8
|
-
uffizzi connect docker\-hub
|
9
|
-
.fi
|
7
|
+
\fBuffizzi connect docker\-hub\fR [\-\-username=USERNAME] [\-\-password=PASSWORD]
|
10
8
|
.SH "DESCRIPTION"
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access to a private Docker Hub registry
|
10
|
+
.P
|
11
|
+
Credentials can be provided interactively or non\-interactively via command options or environment variables:
|
12
|
+
.br
|
13
|
+
\fBDOCKERHUB_USERNAME\fR, \fBDOCKERHUB_PASSWORD\fR
|
14
|
+
.P
|
15
|
+
This command can fail for the following reasons: \- The active user does not have permission to connect external services\. \- The given credentials are invalid\.
|
16
|
+
.P
|
20
17
|
For more information on connecting to external services, see:
|
18
|
+
.br
|
21
19
|
https://github\.com/UffizziCloud/uffizzi_cli
|
22
|
-
|
23
|
-
For detailed instructions on configuring webhooks to send push
|
24
|
-
|
20
|
+
.P
|
21
|
+
For detailed instructions on configuring webhooks to send push notifications to Uffizzi, see:
|
22
|
+
.br
|
25
23
|
https://docs\.uffizzi\.com/guides/container\-registry\-integrations
|
26
|
-
.
|
24
|
+
.SH "OPTIONS"
|
25
|
+
.TP
|
26
|
+
\fB\-u\fR, \fB\-\-username=<username>\fR
|
27
|
+
Username for the service\.
|
28
|
+
.TP
|
29
|
+
\fB\-p\fR, \fB\-\-password=<password>\fR
|
30
|
+
Password for the service\.
|
27
31
|
.SH "EXAMPLES"
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
$ uffizzi connect docker\-hub
|
33
|
-
.fi
|
34
|
-
|
32
|
+
The following command will prompt the user to enter Docker Hub credentials, including Docker ID and password or access token:
|
33
|
+
.P
|
34
|
+
\fBuffizzi connect docker\-hub\fR
|
@@ -1,27 +1,39 @@
|
|
1
|
-
uffizzi-connect-docker-hub - grant a Uffizzi user account access to a private Docker Hub registry.
|
2
|
-
================================================================
|
1
|
+
# uffizzi-connect-docker-hub - grant a Uffizzi user account access to a private Docker Hub registry.
|
3
2
|
|
4
3
|
## SYNOPSIS
|
5
|
-
|
4
|
+
|
5
|
+
`uffizzi connect docker-hub` [--username=USERNAME] [--password=PASSWORD]
|
6
6
|
|
7
7
|
## DESCRIPTION
|
8
|
-
Given valid credentials, grants a Uffizzi user account access
|
9
|
-
to a private Docker Hub registry
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access
|
10
|
+
to a private Docker Hub registry
|
11
|
+
|
12
|
+
Credentials can be provided interactively or non-interactively
|
13
|
+
via command options or environment variables:
|
14
|
+
`DOCKERHUB_USERNAME`, `DOCKERHUB_PASSWORD`
|
15
|
+
|
16
|
+
This command can fail for the following reasons:
|
17
|
+
- The active user does not have permission to connect external services.
|
18
|
+
- The given credentials are invalid.
|
19
|
+
|
20
|
+
For more information on connecting to external services, see:
|
21
|
+
https://github.com/UffizziCloud/uffizzi_cli
|
15
22
|
|
16
|
-
|
17
|
-
|
23
|
+
For detailed instructions on configuring webhooks to send push
|
24
|
+
notifications to Uffizzi, see:
|
25
|
+
https://docs.uffizzi.com/guides/container-registry-integrations
|
18
26
|
|
19
|
-
|
20
|
-
|
21
|
-
|
27
|
+
## OPTIONS
|
28
|
+
|
29
|
+
* `-u`, `--username=<username>`:
|
30
|
+
Username for the service.
|
31
|
+
* `-p`, `--password=<password>`:
|
32
|
+
Password for the service.
|
22
33
|
|
23
34
|
## EXAMPLES
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
35
|
+
|
36
|
+
The following command will prompt the user to enter Docker Hub
|
37
|
+
credentials, including Docker ID and password or access token:
|
38
|
+
|
39
|
+
`uffizzi connect docker-hub`
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.\" generated with Ronn-NG/v0.9.1
|
2
|
+
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
3
|
+
.TH "UFFIZZI\-CONNECT\-DOCKER\-REGISTRY" "" "August 2022" ""
|
4
|
+
.SH "NAME"
|
5
|
+
\fBuffizzi\-connect\-docker\-registry\fR \- grant a Uffizzi user account access to a Docker Container Registry\.
|
6
|
+
.SH "SYNOPSIS"
|
7
|
+
\fBuffizzi connect docker\-registry\fR [\-\-registry=REGISTRY] [\-\-username=USERNAME] [\-\-password=PASSWORD]
|
8
|
+
.SH "DESCRIPTION"
|
9
|
+
Given valid credentials, grants a Uffizzi user account access to a Docker Container Registry
|
10
|
+
.P
|
11
|
+
Credentials can be provided interactively or non\-interactively via command options or environment variables:
|
12
|
+
.br
|
13
|
+
\fBDOCKER_REGISTRY_URL\fR, \fBDOCKER_REGISTRY_USERNAME\fR, \fBDOCKER_REGISTRY_PASSWORD\fR
|
14
|
+
.P
|
15
|
+
This command can fail for the following reasons: \- The active user does not have permission to connect external services\. \- The given credentials are invalid\.
|
16
|
+
.P
|
17
|
+
For more information on connecting to external services, see:
|
18
|
+
.br
|
19
|
+
https://github\.com/UffizziCloud/uffizzi_cli
|
20
|
+
.P
|
21
|
+
For detailed instructions on configuring webhooks to send push notifications to Uffizzi, see:
|
22
|
+
.br
|
23
|
+
https://docs\.uffizzi\.com/guides/container\-registry\-integrations
|
24
|
+
.SH "OPTIONS"
|
25
|
+
.TP
|
26
|
+
\fB\-r\fR, \fB\-\-registry=<registry>\fR
|
27
|
+
URL of the service\.
|
28
|
+
.TP
|
29
|
+
\fB\-u\fR, \fB\-\-username=<username>\fR
|
30
|
+
Username for the service\.
|
31
|
+
.TP
|
32
|
+
\fB\-p\fR, \fB\-\-password=<password>\fR
|
33
|
+
Password for the service\.
|
34
|
+
.SH "EXAMPLES"
|
35
|
+
The following command will prompt the user to enter Docker Container Registry credentials, including username and password:
|
36
|
+
.P
|
37
|
+
\fBuffizzi connect docker\-registry\fR
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# uffizzi-connect-docker-registry - grant a Uffizzi user account access to a Docker Container Registry.
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`uffizzi connect docker-registry` [--registry=REGISTRY] [--username=USERNAME] [--password=PASSWORD]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Given valid credentials, grants a Uffizzi user account access
|
10
|
+
to a Docker Container Registry
|
11
|
+
|
12
|
+
Credentials can be provided interactively or non-interactively
|
13
|
+
via command options or environment variables:
|
14
|
+
`DOCKER_REGISTRY_URL`, `DOCKER_REGISTRY_USERNAME`, `DOCKER_REGISTRY_PASSWORD`
|
15
|
+
|
16
|
+
This command can fail for the following reasons:
|
17
|
+
- The active user does not have permission to connect external services.
|
18
|
+
- The given credentials are invalid.
|
19
|
+
|
20
|
+
For more information on connecting to external services, see:
|
21
|
+
https://github.com/UffizziCloud/uffizzi_cli
|
22
|
+
|
23
|
+
For detailed instructions on configuring webhooks to send push
|
24
|
+
notifications to Uffizzi, see:
|
25
|
+
https://docs.uffizzi.com/guides/container-registry-integrations
|
26
|
+
|
27
|
+
## OPTIONS
|
28
|
+
|
29
|
+
* `-r`, `--registry=<registry>`:
|
30
|
+
URL of the service.
|
31
|
+
* `-u`, `--username=<username>`:
|
32
|
+
Username for the service.
|
33
|
+
* `-p`, `--password=<password>`:
|
34
|
+
Password for the service.
|
35
|
+
|
36
|
+
## EXAMPLES
|
37
|
+
|
38
|
+
The following command will prompt the user to enter Docker Container Registry
|
39
|
+
credentials, including username and password:
|
40
|
+
|
41
|
+
`uffizzi connect docker-registry`
|
data/man/uffizzi-connect-ecr
CHANGED
@@ -1,35 +1,37 @@
|
|
1
1
|
.\" generated with Ronn-NG/v0.9.1
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
3
|
-
.TH "UFFIZZI\-CONNECT\-ECR" "" "
|
3
|
+
.TH "UFFIZZI\-CONNECT\-ECR" "" "August 2022" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBuffizzi\-connect\-ecr\fR \- grant a Uffizzi user account access to a private Amazon Elastic Container Registry (ECR)
|
6
6
|
.SH "SYNOPSIS"
|
7
|
-
|
8
|
-
uffizzi connect ecr
|
9
|
-
.fi
|
7
|
+
\fBuffizzi connect ecr\fR [\-\-registry=REGISTRY] [\-\-id=ID] [\-\-secret=SECRET]
|
10
8
|
.SH "DESCRIPTION"
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access to a private Amazon Elastic Container Registry
|
10
|
+
.P
|
11
|
+
Credentials can be provided interactively or non\-interactively via command options or environment variables:
|
12
|
+
.br
|
13
|
+
\fBAWS_REGISTRY_URL\fR, \fBAWS_ACCESS_KEY_ID\fR, \fBAWS_SECRET_ACCESS_KEY\fR
|
14
|
+
.P
|
15
|
+
This command can fail for the following reasons: \- The active user does not have permission to connect external services\. \- The given credentials are invalid\.
|
16
|
+
.P
|
20
17
|
For more information on connecting to external services, see:
|
18
|
+
.br
|
21
19
|
https://github\.com/UffizziCloud/uffizzi_cli
|
22
|
-
|
23
|
-
For detailed instructions on configuring webhooks to send push
|
24
|
-
|
20
|
+
.P
|
21
|
+
For detailed instructions on configuring webhooks to send push notifications to Uffizzi, see:
|
22
|
+
.br
|
25
23
|
https://docs\.uffizzi\.com/guides/container\-registry\-integrations
|
26
|
-
.
|
24
|
+
.SH "OPTIONS"
|
25
|
+
.TP
|
26
|
+
\fB\-r\fR, \fB\-\-registry=<registry>\fR
|
27
|
+
URL of the service\.
|
28
|
+
.TP
|
29
|
+
\fB\-\-id=<id>\fR
|
30
|
+
Access key id for the service\.
|
31
|
+
.TP
|
32
|
+
\fB\-s\fR, \fB\-\-secret=<secret>\fR
|
33
|
+
Secret access key for the service\.
|
27
34
|
.SH "EXAMPLES"
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
secret access key:
|
32
|
-
|
33
|
-
$ uffizzi connect ecr
|
34
|
-
.fi
|
35
|
-
|
35
|
+
The following command will prompt the user to enter ACR credentials, including registry domain, access key ID and secret access key:
|
36
|
+
.P
|
37
|
+
\fBuffizzi connect ecr\fR
|
@@ -1,28 +1,42 @@
|
|
1
|
-
uffizzi-connect-ecr - grant a Uffizzi user account access to a private Amazon Elastic Container Registry (ECR)
|
2
|
-
================================================================
|
1
|
+
# uffizzi-connect-ecr - grant a Uffizzi user account access to a private Amazon Elastic Container Registry (ECR)
|
3
2
|
|
4
3
|
## SYNOPSIS
|
5
|
-
|
4
|
+
|
5
|
+
`uffizzi connect ecr` [--registry=REGISTRY] [--id=ID] [--secret=SECRET]
|
6
6
|
|
7
7
|
## DESCRIPTION
|
8
|
-
Given valid credentials, grants a Uffizzi user account access
|
9
|
-
to a private Amazon Elastic Container Registry
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access
|
10
|
+
to a private Amazon Elastic Container Registry
|
11
|
+
|
12
|
+
Credentials can be provided interactively or non-interactively
|
13
|
+
via command options or environment variables:
|
14
|
+
`AWS_REGISTRY_URL`, `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`
|
15
|
+
|
16
|
+
This command can fail for the following reasons:
|
17
|
+
- The active user does not have permission to connect external services.
|
18
|
+
- The given credentials are invalid.
|
19
|
+
|
20
|
+
For more information on connecting to external services, see:
|
21
|
+
https://github.com/UffizziCloud/uffizzi_cli
|
15
22
|
|
16
|
-
|
17
|
-
|
23
|
+
For detailed instructions on configuring webhooks to send push
|
24
|
+
notifications to Uffizzi, see:
|
25
|
+
https://docs.uffizzi.com/guides/container-registry-integrations
|
18
26
|
|
19
|
-
|
20
|
-
|
21
|
-
|
27
|
+
## OPTIONS
|
28
|
+
|
29
|
+
* `-r`, `--registry=<registry>`:
|
30
|
+
URL of the service.
|
31
|
+
* `--id=<id>`:
|
32
|
+
Access key id for the service.
|
33
|
+
* `-s`, `--secret=<secret>`:
|
34
|
+
Secret access key for the service.
|
22
35
|
|
23
36
|
## EXAMPLES
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
37
|
+
|
38
|
+
The following command will prompt the user to enter ACR
|
39
|
+
credentials, including registry domain, access key ID and
|
40
|
+
secret access key:
|
41
|
+
|
42
|
+
`uffizzi connect ecr`
|
data/man/uffizzi-connect-gcr
CHANGED
@@ -1,40 +1,31 @@
|
|
1
1
|
.\" generated with Ronn-NG/v0.9.1
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
3
|
-
.TH "UFFIZZI\-CONNECT\-GCR" "" "
|
3
|
+
.TH "UFFIZZI\-CONNECT\-GCR" "" "August 2022" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBuffizzi\-connect\-gcr\fR \- grant a Uffizzi user account access to a private Google Container Registry (GCR)
|
6
6
|
.SH "SYNOPSIS"
|
7
|
-
|
8
|
-
uffizzi connect gcr [KEY_FILE]
|
9
|
-
.fi
|
7
|
+
\fBuffizzi connect gcr\fR [KEY_FILE]
|
10
8
|
.SH "DESCRIPTION"
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access to a private Google Container Registry
|
10
|
+
.P
|
11
|
+
Credentials can be provided via a key file or environment variable:
|
12
|
+
.br
|
13
|
+
\fBGCLOUD_SERVICE_KEY\fR
|
14
|
+
.P
|
15
|
+
This command can fail for the following reasons: \- The active user does not have permission to connect external services\. \- The given credentials are invalid\.
|
16
|
+
.P
|
20
17
|
For more information on connecting to external services, see:
|
18
|
+
.br
|
21
19
|
https://github\.com/UffizziCloud/uffizzi_cli
|
22
|
-
|
23
|
-
For detailed instructions on configuring webhooks to send push
|
24
|
-
|
20
|
+
.P
|
21
|
+
For detailed instructions on configuring webhooks to send push notifications to Uffizzi, see:
|
22
|
+
.br
|
25
23
|
https://docs\.uffizzi\.com/guides/container\-registry\-integrations
|
26
|
-
.
|
27
|
-
.
|
28
|
-
.nf
|
24
|
+
.SH "ARGUMENTS"
|
25
|
+
.TP
|
29
26
|
KEY_FILE
|
30
|
-
|
31
|
-
JSON file that grants Uffizzi access to a private GCR\.
|
32
|
-
.fi
|
27
|
+
A Google Cloud service account key file\. The key file is a JSON file that grants Uffizzi access to a private GCR\.
|
33
28
|
.SH "EXAMPLES"
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
$ uffizzi connect gcr sa\-private\-key\.json
|
39
|
-
.fi
|
40
|
-
|
29
|
+
The following command uses a Google Cloud service account key file called sa\-private\-key\.json to connect to a private GCR:
|
30
|
+
.P
|
31
|
+
\fBuffizzi connect gcr sa\-private\-key\.json\fR
|
@@ -1,32 +1,36 @@
|
|
1
|
-
uffizzi-connect-gcr - grant a Uffizzi user account access to a private Google Container Registry (GCR)
|
2
|
-
================================================================
|
1
|
+
# uffizzi-connect-gcr - grant a Uffizzi user account access to a private Google Container Registry (GCR)
|
3
2
|
|
4
3
|
## SYNOPSIS
|
5
|
-
|
4
|
+
|
5
|
+
`uffizzi connect gcr` [KEY_FILE]
|
6
6
|
|
7
7
|
## DESCRIPTION
|
8
|
-
Given valid credentials, grants a Uffizzi user account access
|
9
|
-
to a private Google Container Registry
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access
|
10
|
+
to a private Google Container Registry
|
11
|
+
|
12
|
+
Credentials can be provided via a key file or environment variable:
|
13
|
+
`GCLOUD_SERVICE_KEY`
|
14
|
+
|
15
|
+
This command can fail for the following reasons:
|
16
|
+
- The active user does not have permission to connect external services.
|
17
|
+
- The given credentials are invalid.
|
15
18
|
|
16
|
-
|
17
|
-
|
19
|
+
For more information on connecting to external services, see:
|
20
|
+
https://github.com/UffizziCloud/uffizzi_cli
|
18
21
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
+
For detailed instructions on configuring webhooks to send push
|
23
|
+
notifications to Uffizzi, see:
|
24
|
+
https://docs.uffizzi.com/guides/container-registry-integrations
|
22
25
|
|
23
|
-
##
|
24
|
-
|
25
|
-
|
26
|
-
|
26
|
+
## ARGUMENTS
|
27
|
+
|
28
|
+
* KEY_FILE:
|
29
|
+
A Google Cloud service account key file. The key file is a JSON file that grants Uffizzi access to a private GCR.
|
27
30
|
|
28
31
|
## EXAMPLES
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
32
|
+
|
33
|
+
The following command uses a Google Cloud service account key
|
34
|
+
file called sa-private-key.json to connect to a private GCR:
|
35
|
+
|
36
|
+
`uffizzi connect gcr sa-private-key.json`
|
data/man/uffizzi-connect-ghcr
CHANGED
@@ -1,44 +1,34 @@
|
|
1
1
|
.\" generated with Ronn-NG/v0.9.1
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
3
|
-
.TH "UFFIZZI\-CONNECT\-GHCR" "" "
|
3
|
+
.TH "UFFIZZI\-CONNECT\-GHCR" "" "August 2022" ""
|
4
4
|
.SH "NAME"
|
5
5
|
\fBuffizzi\-connect\-ghcr\fR \- grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
|
6
6
|
.SH "SYNOPSIS"
|
7
|
-
|
8
|
-
uffizzi connect ghcr [OPTION]\|\.\|\.\|\.
|
9
|
-
.fi
|
7
|
+
\fBuffizzi connect ghcr\fR [\-\-username=USERNAME] [\-\-token=TOKEN]
|
10
8
|
.SH "DESCRIPTION"
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
This command can fail for the following reasons:
|
20
|
-
\- The active user does not have permission to connect
|
21
|
-
external services\.
|
22
|
-
\- The given credentials are invalid\.
|
23
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access to a private GitHub Container Registry\.
|
10
|
+
.P
|
11
|
+
Credentials can be provided interactively or non\-interactively via command options or environment variables:
|
12
|
+
.br
|
13
|
+
\fBGITHUB_USERNAME\fR, \fBGITHUB_ACCESS_TOKEN\fR
|
14
|
+
.P
|
15
|
+
This command can fail for the following reasons: \- The active user does not have permission to connect external services\. \- The given credentials are invalid\.
|
16
|
+
.P
|
24
17
|
For more information on connecting to external services, see:
|
18
|
+
.br
|
25
19
|
https://github\.com/UffizziCloud/uffizzi_cli
|
26
|
-
|
27
|
-
For detailed instructions on configuring webhooks to send push
|
28
|
-
|
20
|
+
.P
|
21
|
+
For detailed instructions on configuring webhooks to send push notifications to Uffizzi, see:
|
22
|
+
.br
|
29
23
|
https://docs\.uffizzi\.com/guides/container\-registry\-integrations
|
30
|
-
.fi
|
31
24
|
.SH "OPTIONS"
|
32
|
-
.
|
33
|
-
\-u, \-\-username
|
34
|
-
|
35
|
-
.
|
25
|
+
.TP
|
26
|
+
\fB\-u\fR, \fB\-\-username=<username>\fR
|
27
|
+
Username for the service\.
|
28
|
+
.TP
|
29
|
+
\fB\-t\fR, \fB\-\-token=<token>\fR
|
30
|
+
Access token for the service\.
|
36
31
|
.SH "EXAMPLES"
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
personal access token (PAT):
|
41
|
-
|
42
|
-
uffizzi connect ghcr
|
43
|
-
.fi
|
44
|
-
|
32
|
+
The following command will prompt the user to enter GHCR credentials, including GitHub account name and personal access token (PAT):
|
33
|
+
.P
|
34
|
+
\fBuffizzi connect ghcr\fR
|
@@ -1,36 +1,40 @@
|
|
1
|
-
uffizzi-connect-ghcr - grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
|
2
|
-
================================================================
|
1
|
+
# uffizzi-connect-ghcr - grant a Uffizzi user account access to a private GitHub Container Registry (GHCR)
|
3
2
|
|
4
3
|
## SYNOPSIS
|
5
|
-
|
4
|
+
|
5
|
+
`uffizzi connect ghcr` [--username=USERNAME] [--token=TOKEN]
|
6
6
|
|
7
7
|
## DESCRIPTION
|
8
|
-
Given valid credentials, grants a Uffizzi user account access
|
9
|
-
to a private GitHub Container Registry.
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
Given valid credentials, grants a Uffizzi user account access
|
10
|
+
to a private GitHub Container Registry.
|
11
|
+
|
12
|
+
Credentials can be provided interactively or non-interactively
|
13
|
+
via command options or environment variables:
|
14
|
+
`GITHUB_USERNAME`, `GITHUB_ACCESS_TOKEN`
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
- The given credentials are invalid.
|
16
|
+
This command can fail for the following reasons:
|
17
|
+
- The active user does not have permission to connect external services.
|
18
|
+
- The given credentials are invalid.
|
19
19
|
|
20
|
-
|
21
|
-
|
20
|
+
For more information on connecting to external services, see:
|
21
|
+
https://github.com/UffizziCloud/uffizzi_cli
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
For detailed instructions on configuring webhooks to send push
|
24
|
+
notifications to Uffizzi, see:
|
25
|
+
https://docs.uffizzi.com/guides/container-registry-integrations
|
26
26
|
|
27
27
|
## OPTIONS
|
28
|
-
|
29
|
-
|
28
|
+
|
29
|
+
* `-u`, `--username=<username>`:
|
30
|
+
Username for the service.
|
31
|
+
* `-t`, `--token=<token>`:
|
32
|
+
Access token for the service.
|
30
33
|
|
31
34
|
## EXAMPLES
|
32
|
-
The following command will prompt the user to enter GHCR
|
33
|
-
credentials, including GitHub account name and
|
34
|
-
personal access token (PAT):
|
35
35
|
|
36
|
-
|
36
|
+
The following command will prompt the user to enter GHCR
|
37
|
+
credentials, including GitHub account name and
|
38
|
+
personal access token (PAT):
|
39
|
+
|
40
|
+
`uffizzi connect ghcr`
|
data/man/uffizzi-connect.ronn
CHANGED
@@ -1,37 +1,45 @@
|
|
1
|
-
uffizzi-connect - grant a Uffizzi user account access to external services
|
2
|
-
================================================================
|
1
|
+
# uffizzi-connect - grant a Uffizzi user account access to external services
|
3
2
|
|
4
3
|
## SYNOPSIS
|
5
|
-
|
4
|
+
|
5
|
+
`uffizzi connect` COMMAND [--skip-raise-existence-error] [--update-credential-if-exists]
|
6
6
|
|
7
7
|
## DESCRIPTION
|
8
|
-
Grants a Uffizzi user account access to external services
|
9
8
|
|
10
|
-
|
11
|
-
|
9
|
+
Grants a Uffizzi user account access to external services.
|
10
|
+
|
11
|
+
For more information on connecting to external services, see:
|
12
|
+
https://github.com/UffizziCloud/uffizzi_cli
|
12
13
|
|
13
14
|
## COMMANDS
|
14
|
-
COMMAND is one of the following:
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
COMMAND is one of the following:
|
17
|
+
|
18
|
+
* `acr`:
|
19
|
+
Connect to Azure Container Registry (azurecr.io).
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
+
* `docker-hub`:
|
22
|
+
Connect to Docker Hub (hub.docker.com).
|
21
23
|
|
22
|
-
|
23
|
-
|
24
|
+
* `docker-registry`:
|
25
|
+
Connect to any registry implementing the Docker Registry HTTP API protocol
|
24
26
|
|
25
|
-
|
26
|
-
|
27
|
+
* `ecr`:
|
28
|
+
Connect to Amazon Elastic Container Registry (amazonaws.com).
|
27
29
|
|
28
|
-
|
29
|
-
|
30
|
+
* `gcr`:
|
31
|
+
Connect to Google Container Registry (gcr.io).
|
32
|
+
|
33
|
+
* `ghcr`:
|
34
|
+
Connect to GitHub Container Registry (ghcr.io).
|
30
35
|
|
31
36
|
|
32
37
|
## FLAGS
|
33
|
-
--skip-raise-existence-error If credential exist, do not raise an exception, just print a message
|
34
38
|
|
35
|
-
|
39
|
+
* `--skip-raise-existence-error`:
|
40
|
+
If credential exists, do not raise an exception, just print a message.
|
41
|
+
|
42
|
+
* `--update-credential-if-exists`:
|
43
|
+
Update credential if it exists.
|
36
44
|
|
37
|
-
Run
|
45
|
+
Run `uffizzi connect COMMAND --help` for more information on a command.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uffizzi-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Thurman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-08-
|
12
|
+
date: 2022-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: awesome_print
|
@@ -337,6 +337,7 @@ files:
|
|
337
337
|
- lib/uffizzi/config_file.rb
|
338
338
|
- lib/uffizzi/date_helper.rb
|
339
339
|
- lib/uffizzi/error.rb
|
340
|
+
- lib/uffizzi/helpers/connect_helper.rb
|
340
341
|
- lib/uffizzi/helpers/project_helper.rb
|
341
342
|
- lib/uffizzi/promt.rb
|
342
343
|
- lib/uffizzi/response_helper.rb
|
@@ -355,6 +356,8 @@ files:
|
|
355
356
|
- man/uffizzi-connect-acr.ronn
|
356
357
|
- man/uffizzi-connect-docker-hub
|
357
358
|
- man/uffizzi-connect-docker-hub.ronn
|
359
|
+
- man/uffizzi-connect-docker-registry
|
360
|
+
- man/uffizzi-connect-docker-registry.ronn
|
358
361
|
- man/uffizzi-connect-ecr
|
359
362
|
- man/uffizzi-connect-ecr.ronn
|
360
363
|
- man/uffizzi-connect-gcr
|