Mise à jour de '.drone.yml'

v4
gregandev 2 years ago
parent 4b278925be
commit f395bc7d5a
  1. 42
      .drone.yml

@ -1,13 +1,43 @@
---
kind: pipeline kind: pipeline
name: hugo
type: docker type: docker
name: default platform:
os: linux
arch: arm64
trigger: trigger:
branch: branch:
- master - master
steps: steps:
- name: Version check - name: git pull submodules
image: jguyomard/hugo-builder image: alpine/git
settings:
user:
from_secret: GIT_USER
password:
from_secret: GIT_PASSWORD
commands: commands:
- echo "Checking Hugo version." - git submodule update --init --recursive
- name: build hugo site
image: plugins/hugo
settings:
hugo_version: 0.69.0
theme: ameida-cv
extended: true
validate: true
config: config.toml
content: content
output: ./public
commands:
- apk add libc6-compat libstdc++
- /bin/hugo
- name: deploy
image: drillster/drone-rsync # image docker permettant d'utiliser rsync pour déployer des fichiers sur un ou plusieurs hôtes
settings:
hosts: ["192.168.1.100"]
target: /var/www/html/hugo-cv
source: public/*
port: 2021
user:
from_secret: RSYNC_USER
key:
from_secret: RSYNC_SSH_KEY

Loading…
Cancel
Save