Skip to content

Instantly share code, notes, and snippets.

@kainiklas
Created January 29, 2018 21:56
Show Gist options
  • Select an option

  • Save kainiklas/76671242020483a6fd48b0877c429e8f to your computer and use it in GitHub Desktop.

Select an option

Save kainiklas/76671242020483a6fd48b0877c429e8f to your computer and use it in GitHub Desktop.
Bitbucket Pipeline for CakePHP + Heroku deployment
# This is a sample build configuration for CakePHP >=3.5 + Heroku
# Official Bitbucket Pipeline documentation: https://confluence.atlassian.com/x/e8YWN
# Only use spaces to indent .yml configuration.
# -----
image: edbizarro/bitbucket-pipelines-php7
pipelines:
branches:
master:
- step:
caches:
- composer
script:
- composer install --no-interaction --no-progress --prefer-dist
- composer test
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment