--- image: thecodeco/pipelines pipelines: branches: master: - step: name: DEPLOY PROD deployment: production caches: - node - composer script: # RUN FRONTEND BUILD - npm install - composer install # REMOVE GIT FROM BUILD DIR SO WE CAN PIPE TO WPENGINE'S GIT - rm -rf .git # ADD FAKE USER DETAILS, OTHERWISE GIT COMPLAINS - git config --global user.email "team+pipelines@thecode.co" - git config --global user.name "Pipelines" # COMMIT THE COMPLETED BUILD TO WPENGINE'S GIT - cd .. && git clone git@git.wpengine.com:production/YOUR_PROJECT.git deploy/ - cd deploy/ && rsync -avzq --delete $BITBUCKET_CLONE_DIR/ . && cd .. - git add . && git commit -m 'deploy' - git push origin master staging: - step: name DEPLOY STAGING deployment: staging caches: - node - composer script: # RUN FRONTEND BUILD - npm install - composer install # REMOVE GIT FROM BUILD DIR SO WE CAN PIPE TO WPENGINE'S GIT - rm -rf .git # ADD FAKE USER DETAILS, OTHERWISE GIT COMPLAINS - git config --global user.email "team+pipelines@thecode.co" - git config --global user.name "Pipelines" # COMMIT THE COMPLETED BUILD TO WPENGINE'S GIT - cd .. && git clone git@git.wpengine.com:staging/YOUR_PROJECT.git deploy/ - cd deploy/ && rsync -avzq --delete $BITBUCKET_CLONE_DIR/ . && cd .. - git add . && git commit -m 'deploy' - git push origin master definitions: caches: themenpm: themes/tcc/node_modules