Use klakegg/hugo for building site
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sam A. 2023-07-30 00:26:13 +02:00
parent 59ebb1338c
commit 8b1ee20ba6
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
3 changed files with 12 additions and 25 deletions

View File

@ -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:

View File

@ -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

View File

@ -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"