diff --git a/.drone.yml b/.drone.yml index 5b29d8d..f162d5a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,13 +20,21 @@ steps: - name: shared path: /tmp/shared -- name: test +- name: deploy image: python:3.7-alpine commands: - - apk add wget make git + - apk add davfs2 wget make git + - mkdir /tmp/content + - 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/ - source /tmp/shared/.venv/bin/activate - - make test - - echo $$DRONE_COMMIT_SHA > .tags + - nohup python app.py > log.txt 2>&1 & + - mkdir /tmp/target + - cd /mnt/target + - wget -mpEk http://127.0.0.1:3000 volumes: - name: shared path: /tmp/shared