Files
ISA-Frontend/bitbucket-pipelines.yml
2020-01-23 16:24:40 +01:00

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