Add PHP build support with customizable environment variables #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces PHP build support to the deployment workflow, updates the Docker base image and environment variables, and improves the handling of dependencies. Below is a summary of the most important changes:
PHP Build Support:
PHP_BUILD_DIRECTORY
,PHP_BUILD_COMMAND
,PHP_BUILD_SCRIPT
,PHP_VERSION
) to allow custom PHP build steps before deployment. Relevant documentation was updated inREADME.md
to describe these variables and their usage.main.sh
:maybe_install_php_dep
: Installs the specified PHP version and its dependencies, validating the version against a predefined list.maybe_run_php_build
: Executes PHP build commands or scripts in the specified directory.function main
) inmain.sh
.Dockerfile Updates:
ubuntu:22.04
toubuntu:24.04
for improved compatibility and security.Documentation Enhancements:
README.md
to include detailed instructions for configuring both PHP and Node.js build steps, with examples of environment variable usage.