Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksurendra/0e89c645edb215f9f9f97357986b92a3 to your computer and use it in GitHub Desktop.
Save ksurendra/0e89c645edb215f9f9f97357986b92a3 to your computer and use it in GitHub Desktop.
Example Angular Production Build and Deploy To External Server Using Bitbucket Pipelines
# Sample build file
# @author Suren Konathala
# -----
image: node:8
pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- echo "$(ls -la)"
- npm install
- npm install -g @angular/cli
- ng build --prod
- echo "$(ls -la dist/)"
- scp -r dist/ user@34.73.227.137:/projets/commerce1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment