Skip to content

Commit

Permalink
[UPDATE] : add trigger for deploy branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba1180 committed May 3, 2023
1 parent 423f2dc commit 1ffe7d8
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
kind: pipeline
name: telegram-front

trigger:
branch:
- deploy
steps:
- name: install
image: node:14
Expand Down Expand Up @@ -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

1 comment on commit 1ffe7d8

@vercel
Copy link

@vercel vercel bot commented on 1ffe7d8 May 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.