use drone secret
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Yann Verry 2022-10-26 22:27:06 +02:00
parent 66a4e303d4
commit d13be23e36
Signed by: yann
GPG key ID: EB9E679A66B8C7A1

View file

@ -1,6 +1,6 @@
kind: pipeline
type: docker
name: default
name: Yann Verry - Blog
steps:
@ -15,15 +15,6 @@ steps:
commands:
- hugo_extended
steps:
- name: sshkey
image: alpine
environment:
SSH_KEY:
from_secret: ssh_key
commands:
- echo "$SSH_KEY" > ./sshprivate && chmod 400 ./sshprivate
steps:
- name: scp files
image: appleboy/drone-scp
@ -32,5 +23,7 @@ steps:
source: ./public
target: ~/public
username: yann-blog
key: ./sshprivate
recursive: true
recursive: true
secrets:
- source: ssh_key
target: ssh_key