49 lines
1007 B
YAML
49 lines
1007 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: git-clone
|
|
image: alpine/git
|
|
volumes:
|
|
- name: output
|
|
path: /output
|
|
commands:
|
|
- git clone --branch gitea-pages git@git.ericxliu.me:eric/ericxliu-me.git /output
|
|
- name: build
|
|
image: plugins/hugo
|
|
volumes:
|
|
- name: output
|
|
path: /output
|
|
settings:
|
|
hugo_version: 0.97.0
|
|
extended: true
|
|
minify: true
|
|
url: ericxliu.me
|
|
validate: false
|
|
output: "/output"
|
|
- name: ls-file
|
|
image: alpine/git
|
|
volumes:
|
|
- name: output
|
|
path: /output
|
|
commands:
|
|
- ls -al /output
|
|
- name: git-push
|
|
image: appleboy/drone-git-push:0.2.0-linux-amd64
|
|
volumes:
|
|
- name: output
|
|
path: /output
|
|
settings:
|
|
branch: gitea-pages
|
|
remote: "git@git.ericxliu.me:eric/ericxliu-me.git"
|
|
force: true
|
|
commit: true
|
|
path: "/output"
|
|
commit_message: "Drone build ${DRONE_COMMIT_SHA:0:7}"
|
|
author_name: "Eric Liu"
|
|
author_email: "eric@ericxliu.me"
|
|
ssh_key:
|
|
from_secret: ssh_key
|
|
volumes:
|
|
- name: output
|
|
temp: {} |