Mise à jour de '.drone.yml'
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
4b278925be
commit
f395bc7d5a
42
.drone.yml
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…
x
Reference in New Issue
Block a user