update
continuous-integration/drone/push Build is passing Details

main
TheSt1tch 3 months ago
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 image: git.st1t.ru/thest1tch/mkdocs-material:latest
commands: commands:
- mkdocs build --clean - mkdocs build --clean
- ls -l site/ - ls -l site/
- cp -r site/ /site - cp -r site/ /site
- chown 1000:1000 /site - chown 1000:1000 /site
- chmod -R 777 /site - chmod -R 777 /site
deploy: - name: deploy
image: alpine:latest image: alpine:latest
volumes: volumes:
- /opt/appdata/nginx/st1t.ru/site:/site # Локальный каталог, монтируемый в контейнер Nginx - /opt/appdata/nginx/st1t.ru/site:/site # Локальный каталог, монтируемый в контейнер Nginx
commands: commands:
- cp -r site/* /site/ - cp -r site/* /site/
- echo "Deployment complete." - echo "Deployment complete."
Loading…
Cancel
Save