2022-10-25 19:20:58 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2022-10-26 20:05:46 +00:00
|
|
|
|
2022-10-25 20:21:18 +00:00
|
|
|
steps:
|
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2022-10-25 19:20:58 +00:00
|
|
|
steps:
|
|
|
|
- name: hugo
|
|
|
|
image: corpusops/hugo
|
|
|
|
commands:
|
2022-10-26 20:05:46 +00:00
|
|
|
- hugo_extended
|
|
|
|
|
2022-10-26 20:19:49 +00:00
|
|
|
steps:
|
|
|
|
- name: sshkey
|
|
|
|
image: alpine
|
|
|
|
environment:
|
|
|
|
SSH_KEY:
|
|
|
|
from_secret: ssh_key
|
|
|
|
commands:
|
|
|
|
- echo "$SSH_KEY" > ./sshprivate && chmod 400 ./sshprivate
|
|
|
|
|
2022-10-26 20:05:46 +00:00
|
|
|
steps:
|
|
|
|
- name: scp files
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host: "peach.verry.org"
|
|
|
|
source: ./public
|
|
|
|
target: ~/public
|
|
|
|
username: yann-blog
|
2022-10-26 20:19:49 +00:00
|
|
|
key: ./sshprivate
|
|
|
|
recursive: true
|