blog/.drone.yml

39 lines
716 B
YAML
Raw Permalink Normal View History

2021-04-25 16:09:03 +00:00
kind: pipeline
name: build
trigger:
event:
- push
steps:
- name: theme
image: kolaente/toolbox
pull: true
group: build-static
commands:
- mkdir themes/vikunja -p
- cd themes/vikunja
- wget https://dl.vikunja.io/theme/vikunja-theme.tar.gz
- tar -xzf vikunja-theme.tar.gz
- name: build
image: klakegg/hugo:0.91.2
2021-04-25 16:09:03 +00:00
pull: true
commands:
- rm -rf public
- hugo
- name: docker
image: plugins/docker
pull: true
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: vikunja/blog
tags: [ 'latest' ]
when:
event: [ push ]
branch: [ main ]