You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
972 B
YAML

kind: pipeline
name: blog
type: docker
clone:
depth: 1
steps:
5 months ago
- name: hugo_prod
image: code.ndumas.com/ndumas/hugo
commands:
- hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com
5 months ago
when:
branch:
include:
- main
5 months ago
- name: hugo_dev
image: code.ndumas.com/ndumas/hugo
commands:
- hugo --enableGitInfo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com
5 months ago
when:
branch:
include:
- dev
5 months ago
- name: hugo_drafts
image: code.ndumas.com/ndumas/hugo
commands:
- hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com
5 months ago
when:
branch:
include:
- drafts
- name: publish
depends_on:
- hugo
image: drillster/drone-rsync
settings:
key:
from_secret: BLOG_DEPLOY_KEY
user: blog
delete: true
recursive: true
hosts: ["blog.ndumas.com"]
source: /drone/src/public/
5 months ago
target: /var/www/blog.ndumas.com/
include: ["*"]