„.drone.yml“ ändern
continuous-integration/drone/push Build encountered an error Details

main
michael 1 year ago
parent 73209d3c57
commit 4ed454f3a4

@ -22,8 +22,13 @@ steps:
- name: serve - name: serve
image: python:3.7-alpine image: python:3.7-alpine
environment:
- SSH_KEY: ${SSH_KEY}
commands: commands:
- apk add unzip wget make git curl - apk add unzip wget make git curl
- mkdir /root/.ssh && echo "$SSH_KEY" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
- git config --global user.name "Drone CI"
- git config --global user.email "drone@omglinux.de"
- mkdir /tmp/content - mkdir /tmp/content
- curl https://cloud.fdgl.rocks/index.php/s/wGLnSaTiL2rn5ae/download -o /tmp/content.zip - curl https://cloud.fdgl.rocks/index.php/s/wGLnSaTiL2rn5ae/download -o /tmp/content.zip
- unzip /tmp/content.zip -d /tmp - unzip /tmp/content.zip -d /tmp
@ -34,11 +39,12 @@ steps:
- source /tmp/shared/.venv/bin/activate - source /tmp/shared/.venv/bin/activate
- nohup python3 app.py 2>&1 > /dev/null & - nohup python3 app.py 2>&1 > /dev/null &
- sleep 10 - sleep 10
- mkdir -p /tmp/shared/target - git clone ssh://git@git.omglinux.de:2222/michael/fdgl-production.git /tmp/shared/target
- cd /tmp/shared/target - cd /tmp/shared/target
- wget -mpEk http://127.0.0.1:5000 2>&1 > /dev/null || true - wget -mpEk http://127.0.0.1:5000 2>&1 > /dev/null || true
- ls /tmp/shared/target - git add -A
- exit - git commit -m "automatic commit $(date)"
- git push origin main
volumes: volumes:
- name: shared - name: shared
path: /tmp/shared path: /tmp/shared

Loading…
Cancel
Save