Update .drone.yml
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
4b5940a85e
commit
d8823fd71e
|
@ -4,7 +4,7 @@ type: docker
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
depth: 0
|
depth: 0 # Hämta hela historiken
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -14,6 +14,10 @@ steps:
|
||||||
path: /site
|
path: /site
|
||||||
commands:
|
commands:
|
||||||
- pip install -U -r ./requirements.txt
|
- 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
|
- mkdocs build
|
||||||
- cp -r site/ /site
|
- cp -r site/ /site
|
||||||
- chmod -R 777 /site
|
- chmod -R 777 /site
|
||||||
|
@ -21,4 +25,4 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- name: site
|
- name: site
|
||||||
host:
|
host:
|
||||||
path: /root/sa6anw
|
path: /root/sa6anw
|
||||||
|
|
Loading…
Reference in New Issue