Skip to content

Commit cfd8a10

Browse files
committed
fix: disable provenance for docker image builds
1 parent 78b821c commit cfd8a10

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Executable/DockerExecutable.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ public function build(string $file, string $tag, string $architecture = '', ?str
2828
$platform = 'linux/arm64';
2929
}
3030

31-
$this->run(sprintf('build --pull --file=%s --platform=%s --tag=%s .', $file, $platform, $tag), $cwd, null);
31+
$command = sprintf('build --pull --file=%s --platform=%s --tag=%s', $file, $platform, $tag);
32+
33+
if ('docker' === $this->getExecutable()) {
34+
$command .= ' --provenance=false';
35+
}
36+
37+
$this->run(sprintf('%s .', $command), $cwd, null);
3238
}
3339

3440
/**

0 commit comments

Comments
 (0)