|
|
@ -1,5 +1,5 @@ |
|
|
|
kind: pipeline |
|
|
|
kind: pipeline |
|
|
|
name: mkdocs build and deploy |
|
|
|
name: hugo |
|
|
|
type: docker |
|
|
|
type: docker |
|
|
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
platform: |
|
|
@ -12,17 +12,16 @@ trigger: |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
|
|
|
|
|
|
|
|
- name: build mkdocs site |
|
|
|
- name: |
|
|
|
image: titom73/mkdocs |
|
|
|
image: titom73/mkdocs |
|
|
|
output: ./site |
|
|
|
output: ./site |
|
|
|
command: ["mkdocs build"] |
|
|
|
command: ["mkdocs build"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy on server |
|
|
|
- name: deploy on server |
|
|
|
image: drillster/drone-rsync |
|
|
|
image: drillster/drone-rsync |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
hosts: ["192.168.1.101"] |
|
|
|
hosts: ["192.168.1.100"] |
|
|
|
target: /home/gregan/workspace/mkdocs/doc/site |
|
|
|
target: /var/www/html/mkdocs/doc/site |
|
|
|
source: site/* |
|
|
|
source: site/* |
|
|
|
port: |
|
|
|
port: |
|
|
|
from_secret: RSYNC_PORT |
|
|
|
from_secret: RSYNC_PORT |
|
|
@ -50,3 +49,4 @@ steps: |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
🛑 failed for 👷♂️ build {{build.number}} |
|
|
|
🛑 failed for 👷♂️ build {{build.number}} |
|
|
|
{{/success}} |
|
|
|
{{/success}} |
|
|
|
|
|
|
|
|
|
|
|