+2
-1
@@ -95603,6 +95603,7 @@ const error_1 = __nccwpck_require__(34031);
|
||||
const registry_1 = __nccwpck_require__(26198);
|
||||
const DOCKER_DEFAULT_REGISTRY = 'registry-1.docker.io';
|
||||
const EMPTY_BLOB = Buffer.from('{}');
|
||||
const ALT_EMPTY_BLOB = Buffer.from('');
|
||||
class OCIImage {
|
||||
constructor(image, creds, opts) {
|
||||
_OCIImage_instances.add(this);
|
||||
@@ -95626,7 +95627,7 @@ class OCIImage {
|
||||
// Upload the artifact blob
|
||||
const artifactBlob = await __classPrivateFieldGet(this, _OCIImage_client, "f").uploadBlob(opts.artifact);
|
||||
// Upload the empty blob (needed for the manifest config)
|
||||
const emptyBlob = await __classPrivateFieldGet(this, _OCIImage_client, "f").uploadBlob(EMPTY_BLOB);
|
||||
const emptyBlob = await __classPrivateFieldGet(this, _OCIImage_client, "f").uploadBlob(ALT_EMPTY_BLOB);
|
||||
// Construct artifact manifest
|
||||
const manifest = buildManifest({
|
||||
artifactDescriptor: { ...artifactBlob, mediaType: opts.mediaType },
|
||||
|
||||
Reference in New Issue
Block a user