Exclude PRs from deploy + update Hugo on drone build #69

Merged
benjaoming merged 1 commit from benjaoming/website:fix-drone-maybe into new 2023-03-06 19:29:49 +00:00
Showing only changes of commit bedbfb17ec - Show all commits

View file

@ -7,10 +7,10 @@ steps:
commands:
- apt-get update; apt-get upgrade -y
- 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
- hugo --destination _site/
- name: docker
image: plugins/docker
settings:
@ -20,12 +20,15 @@ steps:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
tags:
tags:
- "${DRONE_BUILD_NUMBER}"
- "hugo"
when:
branch:
- new
event:
exclude:
- pull_request
- name: notify
image: plugins/matrix