forked from data.coop/website
New hugo build command and destination of static output
This commit is contained in:
parent
a6ae0ca3bb
commit
353c50475b
|
@ -3,10 +3,11 @@ name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: hugo
|
image: buster-slim
|
||||||
commands:
|
commands:
|
||||||
- wget https://github.com/gohugoio/hugo/releases/download/v0.62.1/hugo_0.62.1_Linux-64bit.deb -O hugo.deb
|
- wget https://github.com/gohugoio/hugo/releases/download/v0.62.1/hugo_0.62.1_Linux-64bit.deb -O hugo.deb
|
||||||
- dpkg -i hugo.deb
|
- dpkg -i hugo.deb
|
||||||
|
- hugo --destination _site/
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -19,10 +20,10 @@ steps:
|
||||||
from_secret: DOCKER_PASSWORD
|
from_secret: DOCKER_PASSWORD
|
||||||
tags:
|
tags:
|
||||||
- "${DRONE_BUILD_NUMBER}"
|
- "${DRONE_BUILD_NUMBER}"
|
||||||
- "latest"
|
- "hugo"
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- new
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: plugins/matrix
|
image: plugins/matrix
|
||||||
|
|
Loading…
Reference in a new issue