Fix composer installation in woodpecker pipelines

pull/14543/head
Art4 2024-11-10 21:17:41 +00:00
parent a7bc4010b9
commit 68fb214f85
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ steps:
composer_install: composer_install:
image: friendicaci/php8.2:php8.2.16 image: friendicaci/php8.2:php8.2.16
commands: commands:
- mkdir addon # create empty addon folder to appease composer
- export COMPOSER_HOME=.composer - export COMPOSER_HOME=.composer
- composer validate - composer validate
- composer install --no-dev --optimize-autoloader - composer install --no-dev --optimize-autoloader

View File

@ -43,6 +43,7 @@ steps:
composer_install: composer_install:
image: friendicaci/php8.2:php8.2.16 image: friendicaci/php8.2:php8.2.16
commands: commands:
- mkdir addon # create empty addon folder to appease composer
- export COMPOSER_HOME=.composer - export COMPOSER_HOME=.composer
- composer validate - composer validate
- composer install --no-dev --optimize-autoloader - composer install --no-dev --optimize-autoloader