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

main
TheSt1tch 3 months ago
parent e5f3cd4517
commit 58eb9ee18a

@ -0,0 +1,18 @@
pipeline:
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
deploy:
image: alpine:latest
volumes:
- /opt/appdata/nginx/st1t.ru/site:/site # Локальный каталог, монтируемый в контейнер Nginx
commands:
- cp -r site/* /site/
- echo "Deployment complete."

@ -1,36 +0,0 @@
steps:
build-docs:
# build the docs in /docs with mkdocs and
# add the .domains file for codeberg pages
image: squidfunk/mkdocs-material
commands:
- mkdocs build -f ./mkdocs.yml -d docs_build
- git switch --orphan pages
- mv docs_build/* .
- echo -e 'openfindata.org\nopenfindata.codeberg.page\npages.openfindata.codeberg.page' > .domains
when:
path:
include:
- 'mkdocs.yml'
- 'docs/**'
deploy-docs:
# Push the resulting files to openfindata/pages
# to deploy
name: Push built docs to codeberg pages
image: appleboy/drone-git-push
settings:
branch: main
remote: git@codeberg.org:openfindata/pages.git
force: true
commit: true
ssh_key:
# created using woodpecker cli with:
# woodpecker secret add -repository openfindata/openfindata \
# -name codeberg_push_from_ci_priv_key -value @<path_to_privkey_file>
from_secret: codeberg_push_from_ci_priv_key
when:
path:
include:
- 'mkdocs.yml'
- 'docs/**'
Loading…
Cancel
Save