Created
March 19, 2019 14:30
-
-
Save thesurenk/0e89c645edb215f9f9f97357986b92a3 to your computer and use it in GitHub Desktop.
Example Angular Production Build and Deploy To External Server Using Bitbucket Pipelines
This file contains hidden or 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
# 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/ [email protected]:/projets/commerce1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment