bitbucket-pipelines.yml edited online with Bitbucket

This commit is contained in:
Tommy Adamos
2019-02-20 11:26:10 +00:00
parent 179444b15b
commit 8988ce7931

View File

@@ -11,15 +11,14 @@ pipelines:
caches:
- node
script:
- cat /opt/atlassian/pipelines/agent/ssh/id_rsa
# - umask 0022
# - npm install
# - node_modules/.bin/ng build cat-service
# - node_modules/.bin/ng build feed-service
# - node_modules/.bin/ng build --prod
# - tar cfz /tmp/$BITBUCKET_BRANCH-$BITBUCKET_REPO_SLUG.tgz -C dist/hima/ .
# - 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"
- umask 0022
- npm install
- node_modules/.bin/ng build cat-service
- node_modules/.bin/ng build feed-service
- node_modules/.bin/ng build --prod
- tar cfz /tmp/$BITBUCKET_BRANCH-$BITBUCKET_REPO_SLUG.tgz -C dist/hima/ .
- 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"
testing:
- step:
caches: