Skip to content

Commit e3adfdb

Browse files
Update static-php-cli to v2.7.6 (#3)
* Initial plan * Update static-php-cli version from 2.7.1 to 2.7.6 Co-authored-by: leocavalcante <183722+leocavalcante@users.noreply.github.com> * Update Swoole version references to v5.1.8 in documentation Co-authored-by: leocavalcante <183722+leocavalcante@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: leocavalcante <183722+leocavalcante@users.noreply.github.com>
1 parent 85c0321 commit e3adfdb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/copilot-instructions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You are an expert in:
1111
## Project Context
1212

1313
This repository provides **distroless PHP container images** that combine:
14-
- **Static PHP builds** from [static-php-cli](https://github.com/crazywhalecc/static-php-cli) v2.6.1
14+
- **Static PHP builds** from [static-php-cli](https://github.com/crazywhalecc/static-php-cli) v2.7.6
1515
- **Google's distroless base images** for minimal attack surface
1616
- **Multi-architecture support** (AMD64/ARM64)
1717
- **Dual image types**: Distroless runtime images and Debian-based development images
@@ -27,7 +27,7 @@ This repository provides **distroless PHP container images** that combine:
2727

2828
### Build Process
2929
- Uses a two-stage GitHub Actions pipeline:
30-
1. **PHP Build** (`php.yml`): Compiles static PHP binaries for multiple versions (8.1-8.4) and architectures using static-php-cli v2.6.1
30+
1. **PHP Build** (`php.yml`): Compiles static PHP binaries for multiple versions (8.1-8.4) and architectures using static-php-cli v2.7.6
3131
2. **Image Build** (`image.yml`): Creates Docker images using the compiled binaries for both distroless and base variants
3232
- Distroless images use `gcr.io/distroless/cc-debian12:nonroot` base image
3333
- Base images use `debian:12.11` with Composer 2.8 and Xdebug
@@ -42,7 +42,7 @@ This repository provides **distroless PHP container images** that combine:
4242
- Core: bcmath, calendar, ctype, curl, dom, exif, ffi, fileinfo, filter, iconv, intl, mbregex, mbstring, opcache, openssl, pcntl, pdo, phar, posix, session, shmop, simplexml, soap, sockets, sodium, sqlite3, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib
4343
- Caching: apcu, memcache, memcached, redis
4444
- Database: mysqli, mysqlnd, pdo_mysql, pgsql, mongodb
45-
- Performance: swoole (v5.1.7 for PHP 8.1-8.3, v6.0.2 for PHP 8.4), zstd
45+
- Performance: swoole (v5.1.8 for PHP 8.1-8.3, v6.0.2 for PHP 8.4), zstd
4646
- Graphics: gd, imagick
4747
- Development: ast, xdebug (base images only)
4848
- Other: amqp, rdkafka, brotli, ds, gettext, igbinary, inotify, ldap, libxml, msgpack, opentelemetry, password-argon2, readline, xlswriter, yaml
@@ -56,7 +56,7 @@ This repository provides **distroless PHP container images** that combine:
5656
### Project Structure
5757
- `distroless.Dockerfile`: Minimal multi-arch configuration with build arguments (PHPVERSION, TARGETARCH)
5858
- `base.Dockerfile`: Debian-based image with PHP, Composer 2.8, and Xdebug
59-
- `.github/workflows/php.yml`: PHP binary compilation pipeline using static-php-cli v2.6.1
59+
- `.github/workflows/php.yml`: PHP binary compilation pipeline using static-php-cli v2.7.6
6060
- `.github/workflows/image.yml`: Docker image build and push pipeline for both image types
6161
- `.github/copilot-instructions.md`: Development guidelines
6262
- Pre-compiled PHP binaries are built via GitHub Actions using static-php-cli
@@ -76,7 +76,7 @@ This repository provides **distroless PHP container images** that combine:
7676
- Test on both AMD64 and ARM64 architectures using matrix strategy
7777
- Extensions are defined in the `EXTENSIONS` environment variable in `php.yml`
7878
- Both workflows support all PHP versions (8.1, 8.2, 8.3, 8.4) via matrix strategy
79-
- Swoole versions are configured per PHP version (v5.1.7 for 8.1-8.3, v6.0.2 for 8.4)
79+
- Swoole versions are configured per PHP version (v5.1.8 for 8.1-8.3, v6.0.2 for 8.4)
8080

8181
### When modifying build processes:
8282
- Test on both AMD64 and ARM64 architectures using matrix strategy

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- uses: actions/checkout@v4
3535
with:
3636
repository: crazywhalecc/static-php-cli
37-
ref: 2.7.1
37+
ref: 2.7.6
3838

3939
- name: Update Swoole version to ${{ matrix.php.swoole }}
4040
run: |

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ The project uses a two-stage GitHub Actions pipeline:
9191
The complete build process consists of two stages:
9292

9393
1. **PHP Binary Compilation** (`php.yml`):
94-
- Checks out the [static-php-cli](https://github.com/crazywhalecc/static-php-cli) repository (version 2.6.1)
94+
- Checks out the [static-php-cli](https://github.com/crazywhalecc/static-php-cli) repository (version 2.7.6)
9595
- Sets up PHP build environment with required tools and extensions
9696
- Downloads dependencies and compiles PHP with all extensions for multiple PHP versions (8.1, 8.2, 8.3, 8.4)
9797
- Creates static PHP binaries for both AMD64 and ARM64 architectures
9898
- Uses matrix builds with architecture-specific runners (ubuntu-24.04 for AMD64, ubuntu-24.04-arm for ARM64)
9999
- Includes Xdebug extension as a shared module for base images
100-
- Updates Swoole to specific versions per PHP version (v5.1.7 for PHP 8.1-8.3, v6.0.2 for PHP 8.4)
100+
- Updates Swoole to specific versions per PHP version (v5.1.8 for PHP 8.1-8.3, v6.0.2 for PHP 8.4)
101101
- Uploads binaries as GitHub artifacts with version and architecture naming
102102

103103
2. **Docker Image Creation** (`image.yml`):
@@ -114,7 +114,7 @@ The complete build process consists of two stages:
114114

115115
This project combines static PHP binaries with Google's Distroless base images to create minimal, secure PHP runtime containers:
116116

117-
1. **Static PHP Binaries**: Pre-compiled PHP binaries from [static-php-cli](https://github.com/crazywhalecc/static-php-cli) v2.6.1 are built with 60+ extensions for multiple PHP versions (8.1, 8.2, 8.3, 8.4)
117+
1. **Static PHP Binaries**: Pre-compiled PHP binaries from [static-php-cli](https://github.com/crazywhalecc/static-php-cli) v2.7.6 are built with 60+ extensions for multiple PHP versions (8.1, 8.2, 8.3, 8.4)
118118
2. **Multi-arch Build**: Docker build process uses architecture-specific binaries (AMD64 or ARM64) via build arguments (PHPVERSION and TARGETARCH)
119119
3. **Distroless Base**: Uses `gcr.io/distroless/cc-debian12:nonroot` for minimal attack surface and runs as non-root user
120120
4. **Base Images**: Debian 12.11-based images with Composer 2.8 and Xdebug for development workflows

0 commit comments

Comments
 (0)