website/.drone.yml

41 lines
736 B
YAML
Raw Normal View History

kind: pipeline
name: build
2018-09-22 20:44:43 +00:00
trigger:
2021-04-22 09:22:00 +00:00
branch:
- main
event:
- push
2018-09-22 20:44:43 +00:00
steps:
- name: theme
2021-04-22 09:16:51 +00:00
image: kolaente/toolbox
2018-10-15 09:08:57 +00:00
pull: true
group: build-static
2018-10-15 09:08:57 +00:00
commands:
- mkdir themes/vikunja -p
- cd themes/vikunja
2021-04-22 09:00:30 +00:00
- wget https://dl.vikunja.io/theme/vikunja-theme.tar.gz
- tar -xzf vikunja-theme.tar.gz
2018-10-15 09:08:57 +00:00
- name: build
image: monachus/hugo
2018-10-15 08:43:31 +00:00
pull: true
commands:
2021-04-22 13:12:15 +00:00
- rm -rf public
2018-10-15 08:43:31 +00:00
- hugo
- name: docker
image: plugins/docker
pull: true
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: vikunja/website
tags: [ 'latest' ]
when:
event: [ push ]
2018-10-15 09:02:25 +00:00
branch: [ master ]