try to pass sshprivatekey
This commit is contained in:
parent
dfe7626046
commit
66a4e303d4
19
.drone.yml
19
.drone.yml
|
@ -15,21 +15,22 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- hugo_extended
|
- hugo_extended
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: sshkey
|
||||||
|
image: alpine
|
||||||
|
environment:
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret: ssh_key
|
||||||
|
commands:
|
||||||
|
- echo "$SSH_KEY" > ./sshprivate && chmod 400 ./sshprivate
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: scp files
|
- name: scp files
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
volumes:
|
|
||||||
- name: sshkey
|
|
||||||
path: /sshprivate
|
|
||||||
settings:
|
settings:
|
||||||
host: "peach.verry.org"
|
host: "peach.verry.org"
|
||||||
source: ./public
|
source: ./public
|
||||||
target: ~/public
|
target: ~/public
|
||||||
username: yann-blog
|
username: yann-blog
|
||||||
key: /sshprivate
|
key: ./sshprivate
|
||||||
recursive: true
|
recursive: true
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: sshkey
|
|
||||||
host:
|
|
||||||
path: /srv/docker/volumes/drone/sshkey/yann-blog
|
|
Loading…
Reference in a new issue