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