mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-06-01 07:20:42 +00:00
build, deploy: Add --pull option to force pulling base images again
Resolves: #1584 Change-type: minor
This commit is contained in:
parent
d131fb4fa8
commit
d1539f405a
@ -2490,6 +2490,10 @@ Comma-separated list (no spaces) of image names for build cache resolution. Impl
|
|||||||
|
|
||||||
Don't use docker layer caching when building
|
Don't use docker layer caching when building
|
||||||
|
|
||||||
|
#### --pull
|
||||||
|
|
||||||
|
Pull the base images again even if they exist locally
|
||||||
|
|
||||||
#### --squash
|
#### --squash
|
||||||
|
|
||||||
Squash newly built layers into a single new layer
|
Squash newly built layers into a single new layer
|
||||||
@ -2708,6 +2712,10 @@ Comma-separated list (no spaces) of image names for build cache resolution. Impl
|
|||||||
|
|
||||||
Don't use docker layer caching when building
|
Don't use docker layer caching when building
|
||||||
|
|
||||||
|
#### --pull
|
||||||
|
|
||||||
|
Pull the base images again even if they exist locally
|
||||||
|
|
||||||
#### --squash
|
#### --squash
|
||||||
|
|
||||||
Squash newly built layers into a single new layer
|
Squash newly built layers into a single new layer
|
||||||
|
@ -205,6 +205,9 @@ export function generateBuildOpts(options) {
|
|||||||
if (options['cache-from']?.trim()) {
|
if (options['cache-from']?.trim()) {
|
||||||
opts.cachefrom = options['cache-from'].split(',').filter((i) => !!i.trim());
|
opts.cachefrom = options['cache-from'].split(',').filter((i) => !!i.trim());
|
||||||
}
|
}
|
||||||
|
if (options.pull != null) {
|
||||||
|
opts.pull = true;
|
||||||
|
}
|
||||||
if (options.squash != null) {
|
if (options.squash != null) {
|
||||||
opts.squash = true;
|
opts.squash = true;
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,7 @@ export interface DockerCliFlags extends DockerConnectionCliFlags {
|
|||||||
buildArg?: string[];
|
buildArg?: string[];
|
||||||
'cache-from'?: string;
|
'cache-from'?: string;
|
||||||
nocache: boolean;
|
nocache: boolean;
|
||||||
|
pull?: boolean;
|
||||||
squash: boolean;
|
squash: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,6 +89,9 @@ Implements the same feature as the "docker build --cache-from" option.`,
|
|||||||
nocache: flags.boolean({
|
nocache: flags.boolean({
|
||||||
description: "Don't use docker layer caching when building",
|
description: "Don't use docker layer caching when building",
|
||||||
}),
|
}),
|
||||||
|
pull: flags.boolean({
|
||||||
|
description: 'Pull the base images again even if they exist locally',
|
||||||
|
}),
|
||||||
squash: flags.boolean({
|
squash: flags.boolean({
|
||||||
description: 'Squash newly built layers into a single new layer',
|
description: 'Squash newly built layers into a single new layer',
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user