Skip to content

Instantly share code, notes, and snippets.

@ogulcan
Created March 15, 2021 19:01
Show Gist options
  • Save ogulcan/c244215ce1ce3ccfba85b0eac36d00f2 to your computer and use it in GitHub Desktop.
Save ogulcan/c244215ce1ce3ccfba85b0eac36d00f2 to your computer and use it in GitHub Desktop.
# This is will be called by bitbucket pipeline
echo "Deploy script started"
cd /var/www/
sh pull.sh
echo "Deploy script finished execution."
image: atlassian/default-image:latest
pipelines:
default:
- step:
deployment: staging
script:
- cat ./deploy.sh | ssh $user@$address
- echo “Deploy step finished”
# @see: https://ogulcan.medium.com/bitbucket-pipelines-deploy-vuejs-app-to-digital-ocean-5c464c845394
echo "Pull script started"
set -e
cd your_project_path
git pull origin master
# npm i
npm run build
cp -r dist/* res
echo "Pull script finished execution"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment