Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore platform requirements via environment variable #11

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

maikschneider
Copy link
Member

To make sure the renovate bot does not update to a dependency version that does not apply with the platform environment (e.g. php version), the --ignore-platform-reqs option should be removed from the composer install command.
However, there are cases where special requirements are not fulfilled (e.g. ext-ldap). To ignore these requirements, a new environment variable $COMPOSER_INSTALL_OPTIONS is introduced.

Usage:

variables:
  COMPOSER_INSTALL_OPTIONS: "--ignore-platform-req=ext-ldap"

include:
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/main/build-php.yml'

@maikschneider maikschneider merged commit c8d94d6 into main Aug 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant