Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add PHP build support with customizable environment variables #49

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

Merged
merged 5 commits into from
May 26, 2025

Conversation

mrrobot47
Copy link
Member

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:

  • Added new environment variables (PHP_BUILD_DIRECTORY, PHP_BUILD_COMMAND, PHP_BUILD_SCRIPT, PHP_VERSION) to allow custom PHP build steps before deployment. Relevant documentation was updated in README.md to describe these variables and their usage.
  • Introduced two new functions in 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.
  • Integrated the new PHP build steps into the main deployment workflow (function main) in main.sh.

Dockerfile Updates:

  • Updated the base image from ubuntu:22.04 to ubuntu:24.04 for improved compatibility and security.

Documentation Enhancements:

  • Expanded the README.md to include detailed instructions for configuring both PHP and Node.js build steps, with examples of environment variable usage.

@mrrobot47 mrrobot47 merged commit 6984411 into master May 26, 2025
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.