Compare commits
No commits in common. "c9b97e0a6079d4eb7367d3afd85014924dfd662c" and "511542b03e1018c7dddfe5fb8f167e7edbd84fd8" have entirely different histories.
c9b97e0a60
...
511542b03e
10
.drone.yml
10
.drone.yml
|
@ -10,7 +10,6 @@ steps:
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
HOST:
|
HOST:
|
||||||
from_secret: host
|
from_secret: host
|
||||||
|
@ -20,18 +19,9 @@ steps:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
SITE_PATH:
|
SITE_PATH:
|
||||||
from_secret: path
|
from_secret: path
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
- apk update
|
- apk update
|
||||||
- apk add openssh rsync
|
- apk add openssh rsync
|
||||||
- eval $(ssh-agent -s)
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- echo "$RSYNC_KEY" > ~/.ssh/id_rsa
|
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
|
||||||
- ssh-add
|
|
||||||
- echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
|
||||||
- rsync -rP public/ "$${USER}@$${HOST}:$${SITE_PATH}"
|
|
||||||
|
|
Loading…
Reference in New Issue