Skip to content

Commit

Permalink
gen4-4everyone almost
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Oct 16, 2024
1 parent d60d328 commit 8157e82
Show file tree
Hide file tree
Showing 53 changed files with 45 additions and 1,924 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-php-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ jobs:
- image: php
tag: 7.0-apache-4
context: images/7.0-apache
- image: php
tag: 5.6-fpm-4
context: images/5.6-fpm
- image: php
tag: 5.6-apache-4
context: images/5.6-apache

steps:
- name: Checkout code
Expand Down
6 changes: 5 additions & 1 deletion builders/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ module.exports = {
version: '7.4',
supported: ['8.3', '8.2', '8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0', '5.6', '5.5', '5.4', '5.3'],
legacy: ['7.2', '7.1', '7.0', '5.6', '5.5', '5.4', '5.3'],
gen2: ['5.5', '5.4', '5.3'],
path: [
'/app/vendor/bin',
'/app/bin',
Expand Down Expand Up @@ -148,9 +149,12 @@ module.exports = {
// If xdebug is set to "true" then map it to "debug"
if (options.xdebug === true) options.xdebug = 'debug';

// for older generation models
if (_.includes(options.gen2, options.version)) options.suffix = '2';

// Build the php
const php = {
image: options.image ?? `devwithlando/php:${options.version}-${options.phpServer}-4`,
image: options.image ?? `devwithlando/php:${options.version}-${options.phpServer}-${options.suffix}`,
environment: _.merge({}, options.environment, {
PATH: options.path.join(':'),
LANDO_WEBROOT: `/app/${options.webroot}`,
Expand Down
3 changes: 0 additions & 3 deletions examples/5.3/.gitignore

This file was deleted.

46 changes: 0 additions & 46 deletions examples/5.3/.lando.yml

This file was deleted.

127 changes: 0 additions & 127 deletions examples/5.3/README.md

This file was deleted.

Loading

0 comments on commit 8157e82

Please sign in to comment.