Skip to content

Commit

Permalink
[TEST] : deploy test 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba1180 committed May 3, 2023
1 parent 2ab3a43 commit bcad550
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,28 @@ steps:
- npm run build

- 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

# - name: deploy
# image: ubuntu:20.04
# commands:
# - apt-get update && apt-get install -y openssh-client
# - mkdir -p ~/.ssh
# - echo "$SSH_KEY" > ~/.ssh/id_rsa
# - chmod 600 ~/.ssh/id_rsa
# - scp -r build/* $SSH_USER@$SSH_HOST:$SSH_PATH
image: ubuntu:20.04
commands:
- apt-get update && apt-get install -y openssh-client
- mkdir -p ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- scp -r build/* $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 bcad550

@vercel
Copy link

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