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

main
michael 1 year ago
parent ee1284e10e
commit cfa7569def

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

Loading…
Cancel
Save