A custom image for CI Pipelines to run tests and deploy code to remote servers with Deployer.
Based on the currently supported stable PHP CLI Alpine (cli-alpine).
Features:
- PHP 8.6 / PHP 8.5 / PHP 8.4 / PHP 8.3 / PHP 8.2 (based on tags)
- Deployer 8 (
dep) - OpenSSH client (
ssh,ssh-agent,ssh-add,ssh-keyscan,scp) - Very small size
Composer is not included: Deployer's deploy:vendors runs Composer on the remote host (and downloads it there if missing). Install project dependencies in a separate CI step or image if needed.
This is a pre-built image to be used directly in pipelines, not a base for other images. To keep it small, it contains only what is needed to run PHP and Deployer. PHP sources and headers, docker-php-ext-*, pecl, pear, phpize, php-cgi and phpdbg of the official image are not included, and apk is removed, so packages or PHP extensions cannot be installed on top of it. If you need them, use a multi-stage build based on the official PHP image instead.
This Dockerfile is automagically built with a GitHub Workflow. A separately hosted script checks for the newest stable PHP versions at ~5am UTC every day and triggers builds, when a new official PHP docker image is available.
Feel free to use ghcr.io/rechtlogisch/deployer or rechtlogisch/deployer with any Pipeline of your choice. You'll find usage examples in the Wiki for the following service providers:
The unknown/unknown entries shown for a tag on GHCR are BuildKit provenance (provenance: mode=max) and SBOM attestation manifests (enabled in e0618b5), not runnable images. docker pull ignores them. This is expected because GHCR does not support OCI referrers yet (docker/buildx#3047).
Inspect them with:
docker buildx imagetools inspect ghcr.io/rechtlogisch/deployer:latest --format '{{json .Provenance}}'
docker buildx imagetools inspect ghcr.io/rechtlogisch/deployer:latest --format '{{json .SBOM}}'Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.