Skip to content

Commit 37e6a23

Browse files
author
gustavderdrache
authored
Merge pull request #170 from forumone/DEVTOOLS-378-build-pull
[DEVTOOLS-378] f1 build pulls latest images
2 parents 7f810c4 + 4b12301 commit 37e6a23

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/commands/build.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ export default class Build extends Command {
1616
default: true,
1717
description: 'build in parallel (defaults to true)',
1818
}),
19+
pull: flags.boolean({
20+
allowNo: true,
21+
default: true,
22+
description: 'pull latest docker image versions (defaults to true)',
23+
}),
1924
};
2025

2126
static args = [];
@@ -35,6 +40,9 @@ export default class Build extends Command {
3540
if (flags.parallel) {
3641
buildCommand.push('--parallel');
3742
}
43+
if (flags.pull) {
44+
buildCommand.push('--pull');
45+
}
3846

3947
const command = await runCompose(buildCommand, {
4048
cwd: project.root,

0 commit comments

Comments
 (0)