From 59a2b3296f38e3054572edb0b4ab72336c4d9386 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 23 May 2023 07:18:19 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.drone.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 76d60b0..3e953f6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,13 +23,14 @@ steps: - name: deploy image: python:3.7-alpine commands: - - apk add davfs2 wget make git sudo + - apk add unzip wget make git - mkdir /tmp/content - - sudo mount -t davfs https://cloud.fdgl.rocks/public.php/webdav -o username=wGLnSaTiL2rn5ae /tmp/content - - cp -rf /tmp/content/drafts/*.md drafts/ - - cp -rf /tmp/content/events/*.md events/ - - cp -rf /tmp/content/pages/*.md pages/ - - cp -rf /tmp/content/static/* static/ + - curl https://cloud.fdgl.rocks/index.php/s/wGLnSaTiL2rn5ae/download -o /tmp/content.zip + - unzip /tmp/content.zip -d /tmp + - cp -rf /tmp/Webseite/drafts/*.md drafts/ + - cp -rf /tmp/Webseite/events/*.md events/ + - cp -rf /tmp/Webseite/pages/*.md pages/ + - cp -rf /tmp/Webseite/static/* static/ - source /tmp/shared/.venv/bin/activate - nohup python app.py > log.txt 2>&1 & - mkdir /tmp/target