|
|
@ -23,13 +23,14 @@ steps:
|
|
|
|
- name: deploy
|
|
|
|
- name: deploy
|
|
|
|
image: python:3.7-alpine
|
|
|
|
image: python:3.7-alpine
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- apk add davfs2 wget make git sudo
|
|
|
|
- apk add unzip wget make git
|
|
|
|
- mkdir /tmp/content
|
|
|
|
- mkdir /tmp/content
|
|
|
|
- sudo mount -t davfs https://cloud.fdgl.rocks/public.php/webdav -o username=wGLnSaTiL2rn5ae /tmp/content
|
|
|
|
- curl https://cloud.fdgl.rocks/index.php/s/wGLnSaTiL2rn5ae/download -o /tmp/content.zip
|
|
|
|
- cp -rf /tmp/content/drafts/*.md drafts/
|
|
|
|
- unzip /tmp/content.zip -d /tmp
|
|
|
|
- cp -rf /tmp/content/events/*.md events/
|
|
|
|
- cp -rf /tmp/Webseite/drafts/*.md drafts/
|
|
|
|
- cp -rf /tmp/content/pages/*.md pages/
|
|
|
|
- cp -rf /tmp/Webseite/events/*.md events/
|
|
|
|
- cp -rf /tmp/content/static/* static/
|
|
|
|
- cp -rf /tmp/Webseite/pages/*.md pages/
|
|
|
|
|
|
|
|
- cp -rf /tmp/Webseite/static/* static/
|
|
|
|
- source /tmp/shared/.venv/bin/activate
|
|
|
|
- source /tmp/shared/.venv/bin/activate
|
|
|
|
- nohup python app.py > log.txt 2>&1 &
|
|
|
|
- nohup python app.py > log.txt 2>&1 &
|
|
|
|
- mkdir /tmp/target
|
|
|
|
- mkdir /tmp/target
|
|
|
|