|
|
@ -7,7 +7,9 @@ platform: |
|
|
|
trigger: |
|
|
|
trigger: |
|
|
|
branch: |
|
|
|
branch: |
|
|
|
- master |
|
|
|
- master |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
|
|
|
|
|
|
|
|
- name: git pull submodules |
|
|
|
- name: git pull submodules |
|
|
|
image: alpine/git |
|
|
|
image: alpine/git |
|
|
|
settings: |
|
|
|
settings: |
|
|
@ -17,6 +19,7 @@ steps: |
|
|
|
from_secret: GIT_PASSWORD |
|
|
|
from_secret: GIT_PASSWORD |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
- git submodule update --init --recursive |
|
|
|
- git submodule update --init --recursive |
|
|
|
|
|
|
|
|
|
|
|
- name: build hugo site |
|
|
|
- name: build hugo site |
|
|
|
image: plugins/hugo |
|
|
|
image: plugins/hugo |
|
|
|
settings: |
|
|
|
settings: |
|
|
@ -30,7 +33,8 @@ steps: |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
- apk add libc6-compat libstdc++ |
|
|
|
- apk add libc6-compat libstdc++ |
|
|
|
- /bin/hugo |
|
|
|
- /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 |
|
|
|
image: drillster/drone-rsync # image docker permettant d'utiliser rsync pour déployer des fichiers sur un ou plusieurs hôtes |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
hosts: ["192.168.1.100"] |
|
|
|
hosts: ["192.168.1.100"] |
|
|
|