Skip to content

Commit

Permalink
Merge pull request #27 from City-of-Helsinki/UHF-9842
Browse files Browse the repository at this point in the history
Renamed docker-compose.yml to compose.yaml because druidfi/tools defaults to compose.yaml now
  • Loading branch information
tuutti authored Mar 20, 2024
2 parents 75458dd + 8ab516d commit 08fe754
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drush/Commands/UpdateDrushCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private function updateDefaultFiles(UpdateOptions $options) : self {
'docker/openshift/crons/pubsub.sh',
'docker/openshift/preflight/preflight.php',
'docker/openshift/notify.php',
'docker-compose.yml',
'compose.yaml',
'phpunit.xml.dist',
'phpunit.platform.xml',
'tools/make/project/install.mk',
Expand Down
10 changes: 10 additions & 0 deletions src/Update/migrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,13 @@ function drupal_tools_update_5() : UpdateResult {

return new UpdateResult(['Set composer extra.patchLevel configuration.']);
}

/**
* Remove leftover docker-compose.yml file.
*/
function drupal_tools_update_6(UpdateOptions $options, FileManager $fileManager) : UpdateResult {
$fileManager->removeFiles($options, [
'docker-compose.yml',
]);
return new UpdateResult(['Attempted to remove docker-compose.yml file.']);
}

0 comments on commit 08fe754

Please sign in to comment.