mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-10 12:52:22 +00:00
Update image_size
type from number to string
This commit is contained in:
parent
21adee59e3
commit
bed1324655
@ -3277,9 +3277,9 @@ fleet name or slug (preferred)
|
|||||||
|
|
||||||
The commit hash of the release to preload. Use "current" to specify the current
|
The commit hash of the release to preload. Use "current" to specify the current
|
||||||
release (ignored if no appId is given). The current release is usually also the
|
release (ignored if no appId is given). The current release is usually also the
|
||||||
latest, but can be pinned to a specific release. See:
|
latest, but can be pinned to a specific release. See:
|
||||||
https://www.balena.io/docs/learn/deploy/release-strategy/release-policy/
|
https://www.balena.io/docs/learn/deploy/release-strategy/release-policy/
|
||||||
https://www.balena.io/docs/learn/more/masterclasses/fleet-management/#63-pin-using-the-api
|
https://www.balena.io/docs/learn/more/masterclasses/fleet-management/#63-pin-using-the-api
|
||||||
https://github.com/balena-io-examples/staged-releases
|
https://github.com/balena-io-examples/staged-releases
|
||||||
|
|
||||||
#### -s, --splash-image SPLASH-IMAGE
|
#### -s, --splash-image SPLASH-IMAGE
|
||||||
|
@ -84,9 +84,9 @@ export default class PreloadCmd extends Command {
|
|||||||
description: `\
|
description: `\
|
||||||
The commit hash of the release to preload. Use "current" to specify the current
|
The commit hash of the release to preload. Use "current" to specify the current
|
||||||
release (ignored if no appId is given). The current release is usually also the
|
release (ignored if no appId is given). The current release is usually also the
|
||||||
latest, but can be pinned to a specific release. See:
|
latest, but can be pinned to a specific release. See:
|
||||||
https://www.balena.io/docs/learn/deploy/release-strategy/release-policy/
|
https://www.balena.io/docs/learn/deploy/release-strategy/release-policy/
|
||||||
https://www.balena.io/docs/learn/more/masterclasses/fleet-management/#63-pin-using-the-api
|
https://www.balena.io/docs/learn/more/masterclasses/fleet-management/#63-pin-using-the-api
|
||||||
https://github.com/balena-io-examples/staged-releases\
|
https://github.com/balena-io-examples/staged-releases\
|
||||||
`,
|
`,
|
||||||
char: 'c',
|
char: 'c',
|
||||||
@ -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,
|
||||||
})),
|
})),
|
||||||
|
@ -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;
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user