Skip to content

Commit a5fe7e1

Browse files
committed
chore: output docker build command
1 parent ea6f427 commit a5fe7e1

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/Docker.php

+13-9
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@ class Docker
2020
*/
2121
public static function build($path, $project, $environment, $cliBuildOptions, $cliBuildArgs)
2222
{
23+
$buildCommand = static::buildCommand(
24+
$project,
25+
$environment,
26+
$cliBuildOptions,
27+
Manifest::dockerBuildOptions($environment),
28+
$cliBuildArgs,
29+
Manifest::dockerBuildArgs($environment)
30+
);
31+
32+
Helpers::line(sprintf('Build command: %s', $buildCommand));
33+
2334
Process::fromShellCommandline(
24-
static::buildCommand(
25-
$project,
26-
$environment,
27-
$cliBuildOptions,
28-
Manifest::dockerBuildOptions($environment),
29-
$cliBuildArgs,
30-
Manifest::dockerBuildArgs($environment)
31-
),
35+
$buildCommand,
3236
$path
3337
)->setTimeout(null)->mustRun(function ($type, $line) {
3438
Helpers::write($line);
@@ -49,7 +53,7 @@ public static function build($path, $project, $environment, $cliBuildOptions, $c
4953
public static function buildCommand($project, $environment, $cliBuildOptions, $manifestBuildOptions, $cliBuildArgs, $manifestBuildArgs)
5054
{
5155
$command = sprintf(
52-
'docker build --pull --file=%s --tag=%s ',
56+
'docker build --pull --file=%s --tag=%s ',
5357
Manifest::dockerfile($environment),
5458
Str::slug($project).':'.$environment
5559
);

0 commit comments

Comments
 (0)