This commit is contained in:
parent
18526ffd66
commit
424fec7c78
10
.drone.yml
10
.drone.yml
|
@ -7,16 +7,16 @@ steps:
|
|||
image: klakegg/hugo:latest
|
||||
volumes:
|
||||
- name: build
|
||||
path: /root/build
|
||||
path: $HOME/build
|
||||
commands:
|
||||
- hugo
|
||||
- cp -rv public /root/build
|
||||
- cp -rv public $HOME/build
|
||||
|
||||
- name: deploy
|
||||
image: alpine/git:latest
|
||||
volumes:
|
||||
- name: build
|
||||
path: /root/build
|
||||
path: $HOME/build
|
||||
environment:
|
||||
SSH_USER:
|
||||
from_secret: ssh_user
|
||||
|
@ -29,8 +29,8 @@ steps:
|
|||
commands:
|
||||
- mkdir $HOME/.ssh
|
||||
- echo "$SSH_KEY" > $HOME/.ssh/id_ed25519
|
||||
- chmod 600 $HOME/.ssh/id_25519
|
||||
- scp -o "StrictHostKeyChecking no" -P ${SSH_PORT} -r /root/build/public ${SSH_USER}@${SSH_HOST}:docker/nginx/website
|
||||
- chmod 600 $HOME/.ssh/id_ed25519
|
||||
- scp -o "StrictHostKeyChecking no" -P ${SSH_PORT} -r $HOME/build/public ${SSH_USER}@${SSH_HOST}:docker/nginx/website
|
||||
|
||||
volumes:
|
||||
- name: build
|
||||
|
|
Loading…
Reference in a new issue