Magento Commerce Cloud setup
bitbucket-pipelines.yaml
pipelines:
branches:
master:
- step:
image: luzhzh/git-client
script:
- set -e
- set -o pipefail
- git clone --branch master [email protected]:exampleorganization/exampleproject.git exampleproject
- cd exampleproject/
- git config --global user.email "[email protected]"
- git config --global user.name "Deploy Script"
- git remote add mc [email protected]:example.git
- git pull --no-edit mc master
- git push mc master
- cd ../
- rm -rf exampleproject.git/
stage:
- step:
image: luzhzh/git-client
script:
- set -e
- set -o pipefail
- git clone --branch stage [email protected]:exampleorganization/exampleproject.git exampleproject
- cd exampleproject/
- git config --global user.email "[email protected]"
- git config --global user.name "Deploy Script"
- git remote add mc [email protected]:example.git
- git pull --no-edit mc stage
- git push mc stage
- cd ../
- rm -rf exampleproject.git/
definitions:
caches:
node-custom: app/design/frontend/ExampleProject/pwa/node_modulesmagento.app.yaml
Last updated