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
* add containers registry put command
* changeset
* call api
* add list and delete commands
* PR feedback and fixups
* more review fixups
* pr feedback
* unhide containers command
* pr feedback
* Update packages/wrangler/src/__tests__/containers/registries.test.ts
Co-authored-by: Pete Bacon Darwin <[email protected]>
* wip: secret store rework
* pr feedback and tests
* update api shape
* pr feedback
* mark containers commands as in open beta
---------
Co-authored-by: Pete Bacon Darwin <[email protected]>
* A JSON string that encodes the auth required to authenticate with an external image registry. The format of the JSON object is determined by the registry being configured.
@@ -95,12 +94,6 @@ export async function prepareContainerImagesForDev(args: {
95
94
containerOptions: options,
96
95
});
97
96
}else{
98
-
if(!isCloudflareRegistryLink(options.image_uri)){
99
-
thrownewUserError(
100
-
`Image "${options.image_uri}" is a registry link but does not point to the Cloudflare container registry.\n`+
101
-
`To use an existing image from another repository, see https://developers.cloudflare.com/containers/platform-details/image-management/#using-pre-built-container-images`
// TODO: use parseImageName when that gets moved to this package
177
+
if(domain.includes("://")){
178
+
thrownewError(
179
+
`${domain} is invalid:\nImage reference should not include the protocol part (e.g: registry.cloudflare.com rather than https://registry.cloudflare.com)`
180
+
);
181
+
}
182
+
leturl: URL;
183
+
try{
184
+
url=newURL(`http://${domain}`);
185
+
}catch(e){
186
+
if(einstanceofError){
187
+
thrownewError(`${domain} is invalid:\n${e.message}`);
`${url.hostname} is not a supported image registry.\nCurrently we support the following non-Cloudflare registries: ${supportedRegistries}.\nTo use an existing image from another repository, see https://developers.cloudflare.com/containers/platform-details/image-management/#using-pre-built-container-images`
0 commit comments