46 lines
760 B
YAML
46 lines
760 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: build
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: ghcr.io/narolinus/mkdocs-material-insiders
|
||
|
volumes:
|
||
|
- name: site
|
||
|
path: /site
|
||
|
commands:
|
||
|
# - pip install -U -r ./requirements.txt
|
||
|
- mkdocs build
|
||
|
- cp -r site/ /site
|
||
|
- chmod -R 700 /site
|
||
|
|
||
|
- name: deploy
|
||
|
image: drillster/drone-rsync
|
||
|
volumes:
|
||
|
- name: site
|
||
|
path: /site
|
||
|
settings:
|
||
|
hosts: [ "homenet.sn42.de" ]
|
||
|
port: 6666
|
||
|
delete: true
|
||
|
recursive: true
|
||
|
user:
|
||
|
from_secret: deploy_ssh_user
|
||
|
key:
|
||
|
from_secret: deploy_ssh_key
|
||
|
source: /site/
|
||
|
target: htdocs
|
||
|
|
||
|
volumes:
|
||
|
- name: site
|
||
|
temp: {}
|
||
|
|
||
|
image_pull_secrets:
|
||
|
- DockerCredsGithub
|
||
|
---
|
||
|
kind: signature
|
||
|
hmac: fb68537c928bfa1a0fcb81f41e83ce9dea4888075619f8833d029c9086b7903e
|
||
|
|
||
|
...
|