Created
March 15, 2021 19:01
-
-
Save ogulcan/c244215ce1ce3ccfba85b0eac36d00f2 to your computer and use it in GitHub Desktop.
Bitbucket Pipeline: Deploy VueJS Example: https://ogulcan.medium.com/bitbucket-pipelines-deploy-vuejs-app-to-digital-ocean-5c464c845394
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is will be called by bitbucket pipeline | |
echo "Deploy script started" | |
cd /var/www/ | |
sh pull.sh | |
echo "Deploy script finished execution." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: atlassian/default-image:latest | |
pipelines: | |
default: | |
- step: | |
deployment: staging | |
script: | |
- cat ./deploy.sh | ssh $user@$address | |
- echo “Deploy step finished” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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