36 lines
589 B
YAML
36 lines
589 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
|
|
steps:
|
|
- name: submodules
|
|
image: alpine/git
|
|
commands:
|
|
- git submodule update --init --recursive
|
|
|
|
steps:
|
|
- name: hugo
|
|
image: corpusops/hugo
|
|
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
|
|
settings:
|
|
host: "peach.verry.org"
|
|
source: ./public
|
|
target: ~/public
|
|
username: yann-blog
|
|
key: ./sshprivate
|
|
recursive: true |