Skip to content

Commit

Permalink
Add pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hieunba committed Aug 23, 2019
1 parent a3bdb8a commit 1e3c256
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
image: node:10.15.3

pipelines:
branches:
master:
- step:
name: Deploy to test
deployment: test
script:
- pipe: atlassian/scp-deploy:0.3.3
variables:
USER: $DEPLOY_USER
SERVER: $SERVER
SSH_KEY: $DEPLOY_SSH_KEY
REMOTE_PATH: '/srv/www/repo'
LOCAL_PATH: '*'
EXTRA_ARGS: '-o StrictHostKeyChecking=no'
- pipe: atlassian/ssh-run:0.2.2
variables:
SSH_USER: $DEPLOY_USER
SERVER: $SERVER
COMMAND: '/opt/start_server.sh'
MODE: 'command'
SSH_KEY: $DEPLOY_SSH_KEY

0 comments on commit 1e3c256

Please sign in to comment.