|
|
@ -2,49 +2,49 @@ kind: pipeline |
|
|
|
name: mkdocs build and deploy |
|
|
|
name: mkdocs build and deploy |
|
|
|
type: docker |
|
|
|
type: docker |
|
|
|
platform: |
|
|
|
platform: |
|
|
|
os: linux |
|
|
|
os: linux |
|
|
|
arch: arm64 |
|
|
|
arch: arm64 |
|
|
|
trigger: |
|
|
|
trigger: |
|
|
|
branch: |
|
|
|
branch: |
|
|
|
- master |
|
|
|
- master |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
|
|
|
|
|
|
|
|
- name: build mkdocs site |
|
|
|
- name: build mkdocs site |
|
|
|
image: plugins/docker |
|
|
|
image: plugins/docker |
|
|
|
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.101"] |
|
|
|
target: /home/gregan/workspace/mkdocs/doc/site |
|
|
|
target: /home/gregan/workspace/mkdocs/doc/site |
|
|
|
source: site/* |
|
|
|
source: site/* |
|
|
|
port: |
|
|
|
port: |
|
|
|
from_secret: RSYNC_PORT |
|
|
|
from_secret: RSYNC_PORT |
|
|
|
user: |
|
|
|
user: |
|
|
|
from_secret: RSYNC_USER_STACK |
|
|
|
from_secret: RSYNC_USER_STACK |
|
|
|
key: |
|
|
|
key: |
|
|
|
from_secret: RSYNC_SSH_KEY_STACK |
|
|
|
from_secret: RSYNC_SSH_KEY_STACK |
|
|
|
|
|
|
|
|
|
|
|
- name: notification |
|
|
|
- name: notification |
|
|
|
image: appleboy/drone-telegram |
|
|
|
image: appleboy/drone-telegram |
|
|
|
settings: |
|
|
|
settings: |
|
|
|
token: |
|
|
|
token: |
|
|
|
from_secret: TELEGRAM_TOKEN |
|
|
|
from_secret: TELEGRAM_TOKEN |
|
|
|
to: |
|
|
|
to: |
|
|
|
from_secret: TELEGRAM_USERID |
|
|
|
from_secret: TELEGRAM_USERID |
|
|
|
when: |
|
|
|
when: |
|
|
|
status: |
|
|
|
status: |
|
|
|
- failure |
|
|
|
- failure |
|
|
|
- success |
|
|
|
- success |
|
|
|
format: markdown |
|
|
|
format: markdown |
|
|
|
message: > |
|
|
|
message: > |
|
|
|
π {{repo.name}} / {{commit.branch}} - {{commit.message}} |
|
|
|
π {{repo.name}} / {{commit.branch}} - {{commit.message}} |
|
|
|
{{#success build.status}} |
|
|
|
{{#success build.status}} |
|
|
|
β
succeeded for π·ββοΈ build {{build.number}} |
|
|
|
β
succeeded for π·ββοΈ build {{build.number}} |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
π failed for π·ββοΈ build {{build.number}} |
|
|
|
π failed for π·ββοΈ build {{build.number}} |
|
|
|
{{/success}} |
|
|
|
{{/success}} |