hugo-site/.drone.yml
gregandev af261e747a
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
Actualiser .drone.yml
2025-04-05 18:02:01 +02:00

64 lines
1.4 KiB
YAML

kind: pipeline
name: hugo
type: docker
platform:
os: linux
arch: arm64
trigger:
branch:
- main
steps:
- name: build hugo site
# image: greglebreton/drone-hugo:arm64
image: plugins/hugo
settings:
hugo_version: 0.111.3
theme: silhouette-hugo
extended: true
validate: true
config: config.toml
content: content
output: ./public
commands:
- hugo
- name: deploy site on server
image: greglebreton/drone-rsync:aarch64
settings:
hosts: ["192.168.0.100"]
target: /var/www/html/gregandev.fr
source: public/*
port: 2021
user:
from_secret: RSYNC_USER
key:
from_secret: RSYNC_SSH_KEY
- name: notify
image: greglebreton/drone-email:arm64
settings:
from.address: contact@gregandev.fr
host: mail.gregandev.fr
port: 587
debug: true
username: contact@gregandev.fr
password:
from_secret: MAIL_PASSWORD
recipients: [ contact@gregandev.fr ]
subject: >
[{{ build.status }}]
{{ repo.owner }}/{{ repo.name }}
body: >
πŸ“ {{repo.name}} / {{commit.branch}} - {{commit.message}} <br />
{{#success build.status}}
βœ… succeeded for πŸ‘·β€β™‚οΈ build {{build.number}}
{{else}}
πŸ›‘ failed for πŸ‘·β€β™‚οΈ build {{build.number}}
{{/success}}
<br /><img src='https://git.gregandev.fr/assets/img/logo.svg'/>
when:
status: [ success, failure ]