From 521586e758380c946b8b3fbf98ef6265fd0dd168 Mon Sep 17 00:00:00 2001 From: TheSt1tch Date: Thu, 18 Apr 2024 11:49:32 +0500 Subject: [PATCH] add dev mkdocs --- .drone.yml | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/.drone.yml b/.drone.yml index 60c40ad..e2cb570 100755 --- a/.drone.yml +++ b/.drone.yml @@ -4,29 +4,28 @@ type: docker name: build-home-docs steps: -#- name: build main -# image: squidfunk/mkdocs-material:9.4.6 -# pull: if-not-exists -# volumes: -# - name: site -# path: /site -# commands: -# - pip install -U -r ./requirements.txt -# - mkdocs build -# - cp -r site/ /site -# - chown 1000:1000 /site -# - chmod -R 777 /site -# when: -# event: -# - push -# branch: -# - main +- name: build main + image: git.st1t.ru/thest1tch/mkdocs-material:latest + pull: if-not-exists + volumes: + - name: site-st1tru + path: /site + commands: + - mkdocs build + - cp -r site/ /site + - chown 1000:1000 /site + - chmod -R 777 /site + when: + event: + - push + branch: + - main - name: build states image: git.st1t.ru/thest1tch/mkdocs-material:latest pull: if-not-exists volumes: - - name: site-st1tru + - name: site-dev path: /site commands: - mkdocs build @@ -40,9 +39,9 @@ steps: - states/* volumes: -- name: site - host: - path: /opt/appdata/mkdocswiki - name: site-st1tru host: - path: /opt/appdata/nginx/st1t.ru \ No newline at end of file + path: /opt/appdata/nginx/st1t.ru +- name: site-dev + host: + path: /opt/appdata/nginx/dev.thest1tch.ru \ No newline at end of file