mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-06-01 07:20:42 +00:00
Added --squash option to resin build command
This commit is contained in:
parent
abebf6b4f4
commit
bea7b2035a
@ -53,6 +53,10 @@ exports.appendOptions = function(opts) {
|
|||||||
description: 'Run an emulated build using Qemu',
|
description: 'Run an emulated build using Qemu',
|
||||||
boolean: true,
|
boolean: true,
|
||||||
alias: 'e'
|
alias: 'e'
|
||||||
|
}, {
|
||||||
|
signature: 'squash',
|
||||||
|
description: 'Squash newly built layers into a single new layer',
|
||||||
|
boolean: true
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
@ -280,6 +284,9 @@ exports.runBuild = function(params, options, getBundleInfo, logStreams) {
|
|||||||
return logging.logWarn(logStreams, "Could not parse variable: '" + arg + "'");
|
return logging.logWarn(logStreams, "Could not parse variable: '" + arg + "'");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (options.squash != null) {
|
||||||
|
opts['squash'] = true;
|
||||||
|
}
|
||||||
return builder.createBuildStream(opts, hooks, reject);
|
return builder.createBuildStream(opts, hooks, reject);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1406,6 +1406,10 @@ Don't use docker layer caching when building
|
|||||||
|
|
||||||
Run an emulated build using Qemu
|
Run an emulated build using Qemu
|
||||||
|
|
||||||
|
#### --squash
|
||||||
|
|
||||||
|
Squash newly built layers into a single new layer
|
||||||
|
|
||||||
## deploy <appName> [image]
|
## deploy <appName> [image]
|
||||||
|
|
||||||
Use this command to deploy an image to an application, optionally building it first.
|
Use this command to deploy an image to an application, optionally building it first.
|
||||||
@ -1473,6 +1477,10 @@ Don't use docker layer caching when building
|
|||||||
|
|
||||||
Run an emulated build using Qemu
|
Run an emulated build using Qemu
|
||||||
|
|
||||||
|
#### --squash
|
||||||
|
|
||||||
|
Squash newly built layers into a single new layer
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
|
|
||||||
## util available-drives
|
## util available-drives
|
||||||
|
@ -66,6 +66,11 @@ exports.appendOptions = (opts) ->
|
|||||||
description: 'Run an emulated build using Qemu'
|
description: 'Run an emulated build using Qemu'
|
||||||
boolean: true
|
boolean: true
|
||||||
alias: 'e'
|
alias: 'e'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
signature: 'squash'
|
||||||
|
description: 'Squash newly built layers into a single new layer'
|
||||||
|
boolean: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -290,6 +295,8 @@ exports.runBuild = (params, options, getBundleInfo, logStreams) ->
|
|||||||
if options.buildArg?
|
if options.buildArg?
|
||||||
opts['buildargs'] = parseBuildArgs options.buildArg, (arg) ->
|
opts['buildargs'] = parseBuildArgs options.buildArg, (arg) ->
|
||||||
logging.logWarn(logStreams, "Could not parse variable: '#{arg}'")
|
logging.logWarn(logStreams, "Could not parse variable: '#{arg}'")
|
||||||
|
if options.squash?
|
||||||
|
opts['squash'] = true
|
||||||
|
|
||||||
builder.createBuildStream(opts, hooks, reject)
|
builder.createBuildStream(opts, hooks, reject)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user