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:
|
||||
- name: build_stable
|
||||
image: debian:buster-slim
|
||||
image: klakegg/hugo:ext-alpine-ci
|
||||
environment:
|
||||
HUGO_SECURITY_HTTP_URLS: none
|
||||
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/
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
- name: build_staging
|
||||
image: debian:buster-slim
|
||||
image: klakegg/hugo:ext-alpine-ci
|
||||
environment:
|
||||
HUGO_SECURITY_HTTP_URLS: none
|
||||
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/
|
||||
when:
|
||||
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"
|
||||
|
||||
services:
|
||||
serve:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile_hugo
|
||||
command: |
|
||||
/bin/bash -c "cd /code && hugo serve"
|
||||
network_mode: host
|
||||
server:
|
||||
image: klakegg/hugo:ext-alpine
|
||||
command: server
|
||||
volumes:
|
||||
- .:/code
|
||||
- ".:/src"
|
||||
ports:
|
||||
- "1313:1313"
|
||||
|
|
Loading…
Reference in a new issue