mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +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',
|
||||
boolean: true,
|
||||
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 + "'");
|
||||
});
|
||||
}
|
||||
if (options.squash != null) {
|
||||
opts['squash'] = true;
|
||||
}
|
||||
return builder.createBuildStream(opts, hooks, reject);
|
||||
});
|
||||
});
|
||||
|
@ -1406,6 +1406,10 @@ Don't use docker layer caching when building
|
||||
|
||||
Run an emulated build using Qemu
|
||||
|
||||
#### --squash
|
||||
|
||||
Squash newly built layers into a single new layer
|
||||
|
||||
## deploy <appName> [image]
|
||||
|
||||
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
|
||||
|
||||
#### --squash
|
||||
|
||||
Squash newly built layers into a single new layer
|
||||
|
||||
# Utilities
|
||||
|
||||
## util available-drives
|
||||
|
@ -66,6 +66,11 @@ exports.appendOptions = (opts) ->
|
||||
description: 'Run an emulated build using Qemu'
|
||||
boolean: true
|
||||
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?
|
||||
opts['buildargs'] = parseBuildArgs options.buildArg, (arg) ->
|
||||
logging.logWarn(logStreams, "Could not parse variable: '#{arg}'")
|
||||
if options.squash?
|
||||
opts['squash'] = true
|
||||
|
||||
builder.createBuildStream(opts, hooks, reject)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user