„.drone.yml“ ändern
continuous-integration/drone/push Build is failing Details

main
michael 1 year ago
parent 18b8f611d6
commit 59a2b3296f

@ -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

Loading…
Cancel
Save