Use klakegg/hugo for building site
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
59ebb1338c
commit
8b1ee20ba6
16
.drone.yml
16
.drone.yml
|
@ -3,24 +3,20 @@ name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build_stable
|
- name: build_stable
|
||||||
image: debian:buster-slim
|
image: klakegg/hugo:ext-alpine-ci
|
||||||
|
environment:
|
||||||
|
HUGO_SECURITY_HTTP_URLS: none
|
||||||
commands:
|
commands:
|
||||||
- apt-get update; apt-get upgrade -y
|
|
||||||
- apt-get install -y wget git
|
|
||||||
- wget https://github.com/gohugoio/hugo/releases/download/v0.111.2/hugo_extended_0.111.2_linux-amd64.deb -O hugo.deb
|
|
||||||
- dpkg -i hugo.deb
|
|
||||||
- hugo --destination _site/
|
- hugo --destination _site/
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
- name: build_staging
|
- name: build_staging
|
||||||
image: debian:buster-slim
|
image: klakegg/hugo:ext-alpine-ci
|
||||||
|
environment:
|
||||||
|
HUGO_SECURITY_HTTP_URLS: none
|
||||||
commands:
|
commands:
|
||||||
- apt-get update; apt-get upgrade -y
|
|
||||||
- apt-get install -y wget git
|
|
||||||
- wget https://github.com/gohugoio/hugo/releases/download/v0.111.2/hugo_extended_0.111.2_linux-amd64.deb -O hugo.deb
|
|
||||||
- dpkg -i hugo.deb
|
|
||||||
- hugo --baseURL "https://staging.data.coop" --destination _site/
|
- hugo --baseURL "https://staging.data.coop" --destination _site/
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
FROM debian:buster-slim
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get upgrade -y && \
|
|
||||||
apt-get install -y wget git && \
|
|
||||||
wget https://github.com/gohugoio/hugo/releases/download/v0.111.1/hugo_extended_0.111.1_linux-amd64.deb -O hugo.deb && \
|
|
||||||
dpkg -i hugo.deb
|
|
|
@ -1,12 +1,10 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
serve:
|
server:
|
||||||
build:
|
image: klakegg/hugo:ext-alpine
|
||||||
context: .
|
command: server
|
||||||
dockerfile: Dockerfile_hugo
|
|
||||||
command: |
|
|
||||||
/bin/bash -c "cd /code && hugo serve"
|
|
||||||
network_mode: host
|
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- ".:/src"
|
||||||
|
ports:
|
||||||
|
- "1313:1313"
|
||||||
|
|
Loading…
Reference in a new issue