Skip to content

Commit 7499630

Browse files
committed
add new --work-tag-suffix option to build:image command
1 parent 290bdbc commit 7499630

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
kind: Added
2+
body: 'add new `--work-tag-suffix` option to overwrite default "work" suffix (i.e:
3+
"work-820RC7") in docker image'
4+
time: 2022-11-23T08:33:55.7159726Z

src/Console/Command/BuildImage.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ protected function configure(): void
7979
InputOption::VALUE_NONE,
8080
'Display timing and memory usage information'
8181
)
82+
->addOption(
83+
'work-tag-suffix',
84+
null,
85+
InputOption::VALUE_REQUIRED,
86+
'Tag for work Docker image',
87+
'work'
88+
)
8289
;
8390
}
8491

@@ -178,7 +185,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
178185
$command[] = '--cache-from=' . $commonTag . '-mods';
179186
}
180187
} elseif ('work' === $suffix) {
181-
$tag = $commonTag . '-work';
188+
$tag = $commonTag . '-' . $input->getOption('work-tag-suffix');
182189

183190
$command = [
184191
$dockerBin, 'build',

0 commit comments

Comments
 (0)