You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3ee89ac
Browse filesBrowse the repository at this point in the historyBrowse files
"--cname", required=True, type=click.Path(), help="Canonical Name of Image"
110
+
"--tag",
111
+
required=False,
112
+
help="OCI tag of image",
113
+
)
114
+
defpush_container(
115
+
container,
116
+
tag,
117
+
):
118
+
"""
119
+
Push to an OCI registry.
120
+
121
+
:since: 0.11.0
122
+
"""
123
+
124
+
Podman().push(container, oci_tag=tag)
125
+
126
+
127
+
@cli.command()
128
+
@click.option(
129
+
"--container",
130
+
required=True,
131
+
help="Container Name",
35
132
)
133
+
@click.option("--cname", required=True, help="Canonical Name of Image")
36
134
@click.option(
37
135
"--arch",
38
136
required=False,
39
-
type=click.Path(),
40
137
default=None,
41
138
help="Target Image CPU Architecture",
42
139
)
43
140
@click.option(
44
141
"--version",
45
142
required=False,
46
-
type=click.Path(),
47
143
default=None,
48
144
help="Version of image",
49
145
)
50
146
@click.option(
51
147
"--commit",
52
148
required=False,
53
-
type=click.Path(),
54
149
default=None,
55
150
help="Commit of image",
56
151
)
57
-
@click.option("--dir", "directory", required=True, help="path to the build artifacts")
152
+
@click.option(
153
+
"--dir",
154
+
"directory",
155
+
required=True,
156
+
type=click.Path(),
157
+
help="path to the build artifacts",
158
+
)
58
159
@click.option(
59
160
"--cosign_file",
60
161
required=False,
61
162
help="A file where the pushed manifests digests is written to. The content can be used by an external tool (e.g. cosign) to sign the manifests contents",
62
163
)
63
164
@click.option(
64
165
"--manifest_file",
166
+
type=click.Path(),
65
167
default="manifests/manifest.json",
66
168
help="A file where the index entry for the pushed manifest is written to.",
67
169
)
@@ -113,34 +215,29 @@ def push_manifest(
113
215
@click.option(
114
216
"--container",
115
217
required=True,
116
-
type=click.Path(),
117
218
help="Container Name",
118
219
)
119
220
@click.option(
120
221
"--cname",
121
222
required=False,
122
-
type=click.Path(),
123
223
default=None,
124
224
help="Canonical Name of Image",
125
225
)
126
226
@click.option(
127
227
"--arch",
128
228
required=False,
129
-
type=click.Path(),
130
229
default=None,
131
230
help="Target Image CPU Architecture",
132
231
)
133
232
@click.option(
134
233
"--version",
135
234
required=False,
136
-
type=click.Path(),
137
235
default=None,
138
236
help="Version of image",
139
237
)
140
238
@click.option(
141
239
"--commit",
142
240
required=False,
143
-
type=click.Path(),
144
241
default=None,
145
242
help="Commit of image",
146
243
)
@@ -179,23 +276,52 @@ def push_manifest_tags(
179
276
container.push_manifest_for_tags(manifest, tag)
180
277
181
278
279
+
@cli.command()
280
+
@click.option(
281
+
"--container",
282
+
required=True,
283
+
help="Container Name",
284
+
)
285
+
@click.option(
286
+
"--tag",
287
+
required=False,
288
+
help="OCI tag of image",
289
+
)
290
+
@click.option(
291
+
"--oci_archive",
292
+
required=False,
293
+
help="Write build result to the OCI archive path and file name",
0 commit comments