update
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
58eb9ee18a
commit
890a245e97
@ -1,18 +1,23 @@
|
||||
pipeline:
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
|
||||
build:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: git.st1t.ru/thest1tch/mkdocs-material:latest
|
||||
commands:
|
||||
- mkdocs build --clean
|
||||
- ls -l site/
|
||||
- cp -r site/ /site
|
||||
- chown 1000:1000 /site
|
||||
- chmod -R 777 /site
|
||||
- chmod -R 777 /site
|
||||
|
||||
deploy:
|
||||
- name: deploy
|
||||
image: alpine:latest
|
||||
volumes:
|
||||
- /opt/appdata/nginx/st1t.ru/site:/site # Локальный каталог, монтируемый в контейнер Nginx
|
||||
commands:
|
||||
- cp -r site/* /site/
|
||||
- echo "Deployment complete."
|
||||
|
Loading…
Reference in New Issue