Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.02 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.02 KB

How To Deploy PHP Application with Deployer via Bitbucket CI/CD

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.

https://medium.com/@mtigdemir/php-deployment-with-deployer-to-aws-via-bitbucket-pipeline-a605763c63bf

How to use Deployer Image with Bitbucket Pipeline

Available Versions

  • 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