diff --git a/.drone.yml b/.drone.yml index d37fff2..ac2f3d9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,9 @@ kind: pipeline name: telegram-front +trigger: + branch: + - deploy steps: - name: install image: node:14 @@ -33,21 +36,3 @@ steps: - ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts - ls - sshpass -p $SSH_PASS scp -r dist/* $SSH_USER@$SSH_HOST:$SSH_PATH - # - name: deploy - # image: appleboy/drone-ssh:1.6.2 - # settings: - # host: - # from_secret: SSH_HOST - # username: - # from_secret: SSH_USER - # # key: - # # from_secret: SSH_KEY - # password: - # from_secret: SSH_PASS - # port: 22 - # target: - # from_secret: SSH_PATH - # source: build/ - # script: - # - sudo rm -rf $SSH_PATH/* - # - sudo cp -R build/* $SSH_PATH