From cfa7569def04240585196bf648e4a02414976463 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 23 May 2023 06:59:15 +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 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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