Update Hugo on drone build

This commit is contained in:
Benjamin Bach 2023-03-06 20:15:41 +01:00
parent a2e75abdc4
commit bedbfb17ec
Signed by: benjaoming
GPG key ID: 7D49441634585664

View file

@ -7,10 +7,10 @@ steps:
commands: commands:
- apt-get update; apt-get upgrade -y - apt-get update; apt-get upgrade -y
- apt-get install -y wget git - apt-get install -y wget git
- wget https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_extended_0.80.0_Linux-64bit.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/
- name: docker - name: docker
image: plugins/docker image: plugins/docker
settings: settings:
@ -20,12 +20,15 @@ steps:
from_secret: DOCKER_USERNAME from_secret: DOCKER_USERNAME
password: password:
from_secret: DOCKER_PASSWORD from_secret: DOCKER_PASSWORD
tags: tags:
- "${DRONE_BUILD_NUMBER}" - "${DRONE_BUILD_NUMBER}"
- "hugo" - "hugo"
when: when:
branch: branch:
- new - new
event:
exclude:
- pull_request
- name: notify - name: notify
image: plugins/matrix image: plugins/matrix