mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
fix: check for docker-compose
and dockerCompose
This commit is contained in:
parent
c92a59e9bd
commit
f91262419e
|
@ -56,12 +56,17 @@ final class BuildConfigurationCommand extends Command
|
|||
$configurationData['dockerCompose'] = $configurationData['docker-compose'];
|
||||
$configurationData['docker-compose'] = null;
|
||||
|
||||
if (isset($configurationData['docker-compose'])) {
|
||||
$configurationData['dockerCompose'] = $configurationData['docker-compose'];
|
||||
$configurationData['docker-compose'] = null;
|
||||
}
|
||||
|
||||
$io->info("Building configuration for {$configurationData['name']}.");
|
||||
|
||||
$this->filesToGenerate->push(['env.example', '.env.example']);
|
||||
$this->filesToGenerate->push(['Dockerfile', 'Dockerfile']);
|
||||
|
||||
if ($configurationData['dockerCompose'] !== null) {
|
||||
if (isset($configurationData['dockerCompose']) && $configurationData['dockerCompose'] !== null) {
|
||||
$this->filesToGenerate->push(['docker-compose.yaml', 'docker-compose.yaml']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue