This commit is contained in:
parent
66a4e303d4
commit
d13be23e36
17
.drone.yml
17
.drone.yml
|
@ -1,6 +1,6 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: Yann Verry - Blog
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -15,15 +15,6 @@ 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
|
||||||
|
@ -32,5 +23,7 @@ steps:
|
||||||
source: ./public
|
source: ./public
|
||||||
target: ~/public
|
target: ~/public
|
||||||
username: yann-blog
|
username: yann-blog
|
||||||
key: ./sshprivate
|
recursive: true
|
||||||
recursive: true
|
secrets:
|
||||||
|
- source: ssh_key
|
||||||
|
target: ssh_key
|
Loading…
Reference in a new issue