sa6anw.se/.drone.yml

29 lines
564 B
YAML

---
kind: pipeline
type: docker
name: build
clone:
depth: 0 # Hämta hela historiken
steps:
- name: build
image: squidfunk/mkdocs-material:7.1.9
volumes:
- name: site
path: /site
commands:
- pip install -U -r ./requirements.txt
- echo "Kontrollerar att .git finns"
- ls -la .git || (echo "ERROR: .git saknas" && exit 1)
- echo "Kontrollerar git-historik"
- git log -n 3 docs/index.md || (echo "Ingen historik" && exit 1)
- mkdocs build
- cp -r site/ /site
- chmod -R 777 /site
volumes:
- name: site
host:
path: /root/sa6anw