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

Restyle PHP 8.3 without xdebug #180

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,26 @@ program
) {
cmd.push(`mkdir -p build/phpfpm/${versionimage}`);
cmd.push(
`cp images/phpfpm/${version}/Dockerfile build/phpfpm/${versionimage}/Dockerfile`
`cp images/phpfpm/${version}/Dockerfile build/phpfpm/${versionimage}/Dockerfile`,
);
cmd.push(
`sed -i 's/VERSIONIMAGE/php:${versionimage}-fpm/' build/phpfpm/${versionimage}/Dockerfile`
`sed -i 's/VERSIONIMAGE/php:${versionimage}-fpm/' build/phpfpm/${versionimage}/Dockerfile`,
);
cmd.push(
`docker build -t koromerzhin/php:${versionimage}-fpm build/phpfpm/${versionimage} --target build-phpfpm`
`docker build -t koromerzhin/php:${versionimage}-fpm build/phpfpm/${versionimage} --target build-phpfpm`,
);
if (getXdebug(options) == 'on') {
if (getXdebug(options) == "on") {
cmd.push(
`docker build -t koromerzhin/php:${versionimage}-fpm-xdebug build/phpfpm/${versionimage} --target build-phpfpm-xdebug`
`docker build -t koromerzhin/php:${versionimage}-fpm-xdebug build/phpfpm/${versionimage} --target build-phpfpm-xdebug`,
);
}
if (getLatest(options) == 'on') {
if (getLatest(options) == "on") {
cmd.push(
`docker image tag koromerzhin/php:${versionimage}-fpm koromerzhin/php:fpm-latest`
`docker image tag koromerzhin/php:${versionimage}-fpm koromerzhin/php:fpm-latest`,
);
if (getXdebug(options) == 'on') {
if (getXdebug(options) == "on") {
cmd.push(
`docker image tag koromerzhin/php:${versionimage}-fpm-xdebug koromerzhin/php:fpm-latest-xdebug`
`docker image tag koromerzhin/php:${versionimage}-fpm-xdebug koromerzhin/php:fpm-latest-xdebug`,
);
}
}
Expand All @@ -101,26 +101,26 @@ program
) {
cmd.push(`mkdir -p build/php-apache/${versionimage}`);
cmd.push(
`cp images/php-apache/${version}/Dockerfile build/php-apache/${versionimage}/Dockerfile`
`cp images/php-apache/${version}/Dockerfile build/php-apache/${versionimage}/Dockerfile`,
);
cmd.push(
`sed -i 's/VERSIONIMAGE/php:${versionimage}-apache/' build/php-apache/${versionimage}/Dockerfile`
`sed -i 's/VERSIONIMAGE/php:${versionimage}-apache/' build/php-apache/${versionimage}/Dockerfile`,
);
cmd.push(
`docker build -t koromerzhin/php:${versionimage}-apache build/php-apache/${versionimage} --target build-php-apache`
`docker build -t koromerzhin/php:${versionimage}-apache build/php-apache/${versionimage} --target build-php-apache`,
);
if (getXdebug(options) == 'on') {
if (getXdebug(options) == "on") {
cmd.push(
`docker build -t koromerzhin/php:${versionimage}-apache-xdebug build/php-apache/${versionimage} --target build-php-apache-xdebug`
`docker build -t koromerzhin/php:${versionimage}-apache-xdebug build/php-apache/${versionimage} --target build-php-apache-xdebug`,
);
}
if (getLatest(options) != undefined) {
cmd.push(
`docker image tag koromerzhin/php:${versionimage}-apache koromerzhin/php:apache-latest`
`docker image tag koromerzhin/php:${versionimage}-apache koromerzhin/php:apache-latest`,
);
if (getXdebug(options) == 'on') {
if (getXdebug(options) == "on") {
cmd.push(
`docker image tag koromerzhin/php:${versionimage}-apache-xdebug koromerzhin/php:apache-latest-xdebug`
`docker image tag koromerzhin/php:${versionimage}-apache-xdebug koromerzhin/php:apache-latest-xdebug`,
);
}
}
Expand Down
Loading