Fix buildOutput attribute name in deployment check

This commit is contained in:
Torsten Dittmann 2025-09-30 19:51:17 +04:00
parent debdfeedf1
commit b7604a5742

View file

@ -686,7 +686,7 @@ class Builds extends Action
if ($version === 'v2') {
$command = 'tar -zxf /tmp/code.tar.gz -C /usr/code && cd /usr/local/src/ && ./build.sh';
} else {
$outputDirectory = $deployment->getAttribute('outputDirectory') ?? $resource->getAttribute('outputDirectory');
$outputDirectory = $deployment->getAttribute('buildOutput') ?? $resource->getAttribute('outputDirectory');
if ($resource->getCollection() === 'sites') {
$listFilesCommand = '';