From 84f78ee052041761f131497049f99a5f61e5f368 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Wed, 26 Jul 2023 17:21:17 +0200 Subject: [PATCH] Fix baseURL when building for staging.data.coop --- .drone.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3080e5c..bc7a60f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,7 +2,7 @@ kind: pipeline name: default steps: - - name: build + - name: build_stable image: debian:buster-slim commands: - apt-get update; apt-get upgrade -y @@ -10,6 +10,21 @@ steps: - 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 + 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: + - staging # stable site - name: docker_stable