From 4cae3b7391524f0e2794672eb019957a09a82343 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 9 Jan 2024 12:08:48 +0100 Subject: [PATCH] maj drone.yml --- .drone.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.drone.yml b/.drone.yml index e0360c56..97cd2724 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,37 +1,37 @@ kind: pipeline -name: hugo build and deploy +name: mkdocs build and deploy type: docker platform: os: linux arch: amd64 trigger: branch: - - main + - greg steps: # GIT PULL -- name: git pull submodules - image: alpine/git - settings: - user: - from_secret: GIT_USER - password: - from_secret: GIT_PASSWORD - commands: - - git submodule update --init --recursive +# - name: git pull submodules +# image: alpine/git +# settings: +# user: +# from_secret: GIT_USER +# password: +# from_secret: GIT_PASSWORD +# commands: +# - git submodule update --init --recursive # BUILD - name: build # ARM version of mkDocs # image: ghcr.io/afritzler/mkdocs-material:8.1.0 - image: mkdocs-material:1.0 + image: squidfunk/mkdocs-material:9 pull: if-not-exists volumes: - name: site path: /drone/src/docs commands: - - cd doc && pip install -r requirements.txt && mkdocs build + - cd docs && pip install -r requirements.txt && mkdocs build # PUSH FILES TO SERVER - name: deploy files on server @@ -39,7 +39,7 @@ steps: settings: hosts: ["92.243.16.7"] target: /var/www/html/mkdoc/site/ - source: doc/* + source: public/* port: from_secret: RSYNC_SSH_PORT user: