mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
Merge pull request #2041 from balena-io/2040-fix-deploy-exit
deploy: Fix unexpected exit with "Everything is up to date"
This commit is contained in:
commit
4c9a22aba7
@ -243,12 +243,12 @@ ${dockerignoreHelp}
|
|||||||
compositionToBuild.services,
|
compositionToBuild.services,
|
||||||
servicesToSkip,
|
servicesToSkip,
|
||||||
);
|
);
|
||||||
|
let builtImagesByService: Dictionary<any> = {};
|
||||||
if (_.size(compositionToBuild.services) === 0) {
|
if (_.size(compositionToBuild.services) === 0) {
|
||||||
logger.logInfo(
|
logger.logInfo(
|
||||||
'Everything is up to date (use --build to force a rebuild)',
|
'Everything is up to date (use --build to force a rebuild)',
|
||||||
);
|
);
|
||||||
return {};
|
} else {
|
||||||
}
|
|
||||||
const builtImages = await compose.buildProject(
|
const builtImages = await compose.buildProject(
|
||||||
docker,
|
docker,
|
||||||
logger,
|
logger,
|
||||||
@ -265,8 +265,8 @@ ${dockerignoreHelp}
|
|||||||
composeOpts.nogitignore,
|
composeOpts.nogitignore,
|
||||||
composeOpts.multiDockerignore,
|
composeOpts.multiDockerignore,
|
||||||
);
|
);
|
||||||
const builtImagesByService = _.keyBy(builtImages, 'serviceName');
|
builtImagesByService = _.keyBy(builtImages, 'serviceName');
|
||||||
|
}
|
||||||
const images = project.descriptors.map(
|
const images = project.descriptors.map(
|
||||||
(d) =>
|
(d) =>
|
||||||
builtImagesByService[d.serviceName] ?? {
|
builtImagesByService[d.serviceName] ?? {
|
||||||
|
Loading…
Reference in New Issue
Block a user