Please have a look at this article to find out how to use Deployer with self-build docker image and benefits of using your own image.
- PHP 7.1 (
mtigdemir\php-deployer-pipeline:7.1
) - PHP 7.3 (
mtigdemir\php-deployer-pipeline:7.3.25
)
image: mtigdemir/php-deployer-pipeline:{version}
pipelines:
branches:
master:
- step:
caches:
- composer
script:
- composer install
- vendor/bin/phpunit
- dep deploy -vvv test
production:
- step:
caches:
- composer
script:
- composer install --no-dev
- dep deploy production
Please note that, only PHP 7.1 tag uses Composer v1 and all the builds after that compatible with Composer v2