Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: cimg/php:8.1-node
- pipelines:
- branches:
- pipelines:
- - step:
- name: 'Build and deploy via SFTP'
- caches:
- - composer
- - node
- deployment: staging
- script:
- - cd wp-content/themes/geoplanet
- - php composer.phar install
- - npm install
- - npm run package
- - pwd
- - ls -la
- - pipe: atlassian/sftp-deploy:0.5.11
- variables:
- USER: $SFTP_USER
- SERVER: $SFTP_SERVER
- REMOTE_PATH: $SFTP_REMOTE_PATH
- LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/wp-content/themes/geoplanet/package/geoplanet'
- PASSWORD: $SFTP_PASSWORD
- DEBUG: 'true'
- definitions:
- caches:
- node: wp-content/themes/geoplanet/node_modules
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement