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

main
michael 1 year ago
parent e846cd05d0
commit 36a3ccd511

@ -20,7 +20,7 @@ steps:
- name: shared
path: /tmp/shared
- name: deploy
- name: serve
image: python:3.7-alpine
commands:
- apk add unzip wget make git curl
@ -32,11 +32,21 @@ steps:
- cp -rf /tmp/Webseite/pages/*.md pages/
- cp -rf /tmp/Webseite/static/* static/
- source /tmp/shared/.venv/bin/activate
- python app.py &
- mkdir /tmp/target
- cd /tmp/target
- ( python3 app.py > /dev/null 2> /dev/null & );
- mkdir /tmp/shared/target
- cd /tmp/shared/target
- wget -mpEk http://127.0.0.1:5000
volumes:
- name: shared
path: /tmp/shared
- name: target
image: python:3.7-alpine
commands:
- apk add unzip wget make git curl
- mkdir /tmp/shared/target
- cd /tmp/shared/target
- wget -mpEk http://127.0.0.1:5000
- ls /tmp/target
volumes:
- name: shared
path: /tmp/shared

Loading…
Cancel
Save