|
|
|
@ -7,7 +7,9 @@ platform: |
|
|
|
|
trigger: |
|
|
|
|
branch: |
|
|
|
|
- master |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
|
|
- name: git pull submodules |
|
|
|
|
image: alpine/git |
|
|
|
|
settings: |
|
|
|
@ -17,6 +19,7 @@ steps: |
|
|
|
|
from_secret: GIT_PASSWORD |
|
|
|
|
commands: |
|
|
|
|
- git submodule update --init --recursive |
|
|
|
|
|
|
|
|
|
- name: build hugo site |
|
|
|
|
image: plugins/hugo |
|
|
|
|
settings: |
|
|
|
@ -30,7 +33,8 @@ steps: |
|
|
|
|
commands: |
|
|
|
|
- apk add libc6-compat libstdc++ |
|
|
|
|
- /bin/hugo |
|
|
|
|
- name: deploy |
|
|
|
|
|
|
|
|
|
- name: deploy on server |
|
|
|
|
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"] |
|
|
|
|