forked from data.coop/website
Fix baseURL when building for staging.data.coop
This commit is contained in:
parent
cecf3a26a7
commit
84f78ee052
17
.drone.yml
17
.drone.yml
|
@ -2,7 +2,7 @@ kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build_stable
|
||||||
image: debian:buster-slim
|
image: debian:buster-slim
|
||||||
commands:
|
commands:
|
||||||
- apt-get update; apt-get upgrade -y
|
- 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
|
- 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
|
- dpkg -i hugo.deb
|
||||||
- hugo --destination _site/
|
- 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
|
# stable site
|
||||||
- name: docker_stable
|
- name: docker_stable
|
||||||
|
|
Loading…
Reference in a new issue