Update image_size type from number to string

This commit is contained in:
myarmolinsky 2024-09-17 08:20:11 -04:00
parent 21adee59e3
commit bed1324655
4 changed files with 10 additions and 8 deletions

View File

@ -413,6 +413,8 @@ Can be repeated to add multiple certificates.\
const DEFAULT_CHOICE = { name: 'current', value: 'current' }; const DEFAULT_CHOICE = { name: 'current', value: 'current' };
const choices = [DEFAULT_CHOICE].concat( const choices = [DEFAULT_CHOICE].concat(
releases.map((release) => ({ releases.map((release) => ({
// TODO: [next-major] consider changing this to use the release semver
// and maybe the commit as well
name: `${release.end_timestamp} - ${release.commit}`, name: `${release.end_timestamp} - ${release.commit}`,
value: release.commit, value: release.commit,
})), })),

View File

@ -1292,7 +1292,7 @@ async function pushAndUpdateServiceImages(
localImage.inspect(), localImage.inspect(),
pushImage(localImage, index), pushImage(localImage, index),
]); ]);
serviceImage.image_size = imgInfo.Size; serviceImage.image_size = `${imgInfo.Size}`;
serviceImage.content_hash = imgDigest; serviceImage.content_hash = imgDigest;
serviceImage.build_log = logs; serviceImage.build_log = logs;
serviceImage.dockerfile = props.dockerfile; serviceImage.dockerfile = props.dockerfile;

View File

@ -28,7 +28,7 @@
}, },
"__id": 233455 "__id": 233455
}, },
"image_size": 134320410, "image_size": "134320410",
"is_stored_at__image_location": "registry2.balena-cloud.com/v2/9c00c9413942cd15cfc9189c5dac359d", "is_stored_at__image_location": "registry2.balena-cloud.com/v2/9c00c9413942cd15cfc9189c5dac359d",
"project_type": "Standard Dockerfile", "project_type": "Standard Dockerfile",
"error_message": null, "error_message": null,