Skip to content

Commit

Permalink
[TEST] : deploy test
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba1180 committed May 3, 2023
1 parent 31d65ae commit 9686594
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@ steps:

- name: deploy
image: ubuntu:20.04
environment:
KEY:
from_secret: SSH_KEY
USER:
from_secret: SSH_USER
HOST:
from_secret: SSH_HOST
PATH:
from_secret: SSH_PATH
commands:
- apt-get update && apt-get install -y openssh-client
- mkdir -p ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_rsa
- echo "$KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- cat ~/.ssh/id_rsa
- scp -r build/* $SSH_USER@$SSH_HOST:$SSH_PATH
- scp -r build/* $USER@$HOST:$PATH
# - name: deploy
# image: appleboy/drone-ssh:1.6.2
# settings:
Expand Down

1 comment on commit 9686594

@vercel
Copy link

@vercel vercel bot commented on 9686594 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.