File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1+ ARG PHP_VERSION=8.4
2+ FROM dunglas/frankenphp:1.9-php${PHP_VERSION}
3+
4+ RUN install-php-extensions \
5+ bcmath \
6+ exif \
7+ gd \
8+ intl \
9+ mbstring \
10+ mysqli \
11+ opcache \
12+ pdo_mysql \
13+ zip \
14+ curl \
15+ xml \
16+ dom \
17+ simplexml \
18+ tokenizer \
19+ json \
20+ fileinfo \
21+ sockets \
22+ imagick
Original file line number Diff line number Diff line change @@ -68,14 +68,27 @@ jobs:
6868 tar -xzf wordpress-${WP_VERSION}.tar.gz
6969 rm wordpress-${WP_VERSION}.tar.gz
7070
71+ - name : Build FrankenPHP image (with cache)
72+ id : build
73+ uses : docker/build-push-action@v6
74+ with :
75+ context : .
76+ file : .github/docker/Dockerfile
77+ tags : frankenphp-${{ matrix.php }}
78+ load : true
79+ build-args : |
80+ PHP_VERSION=${{ matrix.php }}
81+ cache-from : type=gha
82+ cache-to : type=gha,mode=max
83+
7184 - name : Start FrankenPHP server
7285 run : |
7386 docker run -d \
7487 --name frankenphp \
7588 -p 8100:8100 \
7689 -v $GITHUB_WORKSPACE/wordpress:/var/www/html \
7790 -v $GITHUB_WORKSPACE/Caddyfile:/etc/frankenphp/Caddyfile \
78- dunglas/ frankenphp:1.9-php ${{ matrix.php }}
91+ frankenphp- ${{ matrix.php }}
7992
8093 - name : Install WordPress
8194 run : |
You can’t perform that action at this time.
0 commit comments