mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
36 lines
958 B
YAML
36 lines
958 B
YAML
image: node:11.10.0
|
|
|
|
pipelines:
|
|
default:
|
|
- step:
|
|
script:
|
|
- echo "nothing to do"
|
|
branches:
|
|
master:
|
|
- step:
|
|
caches:
|
|
- node
|
|
script:
|
|
- umask 0022
|
|
- npm install
|
|
- npm run-script build-prod
|
|
- tar cfz /tmp/$BITBUCKET_BRANCH-$BITBUCKET_REPO_SLUG.tgz -C dist/sales/ .
|
|
- scp /tmp/$BITBUCKET_BRANCH-$BITBUCKET_REPO_SLUG.tgz $DEPLOYMENT_USER@$TESTING_HOST:/tmp/
|
|
- ssh $DEPLOYMENT_USER@$TESTING_HOST "sudo /usr/local/bin/deploy $BITBUCKET_BRANCH-$BITBUCKET_REPO_SLUG $BITBUCKET_BRANCH"
|
|
integration:
|
|
- step:
|
|
caches:
|
|
- node
|
|
script:
|
|
- umask 0022
|
|
- npm install
|
|
- npm run-script build
|
|
develop:
|
|
- step:
|
|
caches:
|
|
- node
|
|
script:
|
|
- umask 0022
|
|
- npm install
|
|
- npm run-script build-prod
|