39 lines
610 B
YAML
39 lines
610 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: Yann Verry - Blog
|
|
|
|
steps:
|
|
- name: submodules
|
|
image: alpine/git
|
|
commands:
|
|
- git submodule update --init --recursive
|
|
|
|
- name: hugo
|
|
image: corpusops/hugo
|
|
commands:
|
|
- hugo
|
|
depends_on:
|
|
- submodules
|
|
|
|
- name: hugo_extended
|
|
image: corpusops/hugo
|
|
commands:
|
|
- hugo_extended
|
|
depends_on:
|
|
- hugo
|
|
- submodules
|
|
|
|
- name: scp files
|
|
depends_on:
|
|
- hugo
|
|
- hugo_extended
|
|
image: appleboy/drone-scp
|
|
settings:
|
|
host: "peach.verry.org"
|
|
source: ./public
|
|
target: ~/public
|
|
username: yann-blog
|
|
recursive: true
|
|
key:
|
|
from_secret: ssh_key
|