-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/php-8.0-jit' into php-8.0-jit
- Loading branch information
Showing
2 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [php-8.0-jit] | ||
pull_request: | ||
branches: [php-8.0-jit] | ||
|
||
jobs: | ||
build-push-dev: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: docker-compose build --no-cache php | ||
- run: docker image tag docker-multi-stage-php-nginx_php:latest ${{ secrets.DOCKER_USER }}/php:8.0-fpm-alpine-dev | ||
- run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login --username ${{ secrets.DOCKER_USER }} --password-stdin | ||
- run: docker push ${{ secrets.DOCKER_USER }}/php:8.0-fpm-alpine-dev | ||
|
||
build-push-prod: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: docker-compose -f docker-compose-cloud.yaml build --no-cache php | ||
- run: docker image tag docker-multi-stage-php-nginx_php:latest ${{ secrets.DOCKER_USER }}/php:8.0-fpm-alpine-jit-prod | ||
- run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login --username ${{ secrets.DOCKER_USER }} --password-stdin | ||
- run: docker push ${{ secrets.DOCKER_USER }}/php:8.0-fpm-alpine-jit-prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
FROM php:8.0.16-fpm-alpine AS base | ||
FROM php:8.0-fpm-alpine AS base | ||
|
||
LABEL maintainer="Matheus Bloise <[email protected]>" | ||
|
||
WORKDIR /app | ||
|
||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
|
||
RUN chmod +x /usr/local/bin/install-php-extensions \ | ||
&& install-php-extensions @composer-2.0.2 \ | ||
&& apk --update add --no-cache ${PHPIZE_DEPS} \ | ||
&& pecl install redis-5.3.4 \ | ||
&& docker-php-ext-enable redis | ||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
RUN apk --update add --no-cache ${PHPIZE_DEPS} \ | ||
&& chmod +x /usr/local/bin/install-php-extensions \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
FROM base AS development | ||
|
||
ADD conf.d/dev.ini "$PHP_INI_DIR/conf.d/php.ini" | ||
|
||
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" \ | ||
&& pecl install xdebug-3.0.4 \ | ||
&& pecl install xdebug-3.1.4 \ | ||
&& docker-php-ext-enable xdebug | ||
|
||
|
||
FROM base AS production | ||
|
||
ADD conf.d/prod.ini "$PHP_INI_DIR/conf.d/php.ini" | ||
|