droning....

This commit is contained in:
Dr Serge Victor 2024-01-09 09:39:48 +07:00
parent 8132dccd1e
commit 58d87841e6
1 changed files with 12 additions and 8 deletions

20
.github/drone.yml vendored
View File

@ -1,6 +1,9 @@
# (C) Serge Victor 2020-2024, GPLv3 License
#
# recently build version of documents is available on permanent storage disk mounted on /LDP
#
# this file is protected, DO NOT TAMPER without permission from LDP authorised maintainers!
# contact us or create an issue before thinking about any changes.
kind: pipeline
type: docker
@ -10,7 +13,7 @@ workspace:
path: /builder/src
steps:
- name: Martin's builder - Pull Request only (partial build)
- name: 🗃 Martin's builder - Pull Request only (partial build)
image: tldp/builder:latest
volumes:
- name: LDP
@ -22,13 +25,15 @@ steps:
commands:
- ldptool --dump-cfg
- rm -rf /LDP/PR
- mkdir -p /builder/src/BUILD
- mkdir -p /LDP/PR/BUILD
- rsync -av /LDP/en /LDP/PR
- ldptool --loglevel info --builddir /builder/src/BUILD --configfile .github/builder.ldptool.cfg --pubdir /builder/PR/en --list
- ldptool --loglevel info --builddir /builder/src/BUILD --configfile .github/builder.ldptool.cfg --pubdir /builder/PR/en --publish
- ldptool --loglevel info --builddir /LDP/PR/BUILD --configfile .github/builder.ldptool.cfg --pubdir /builder/PR/en --list
- ionice -c 3 chrt --idle 0 ldptool --loglevel info --builddir /LDP/PR/BUILD --configfile .github/builder.ldptool.cfg --pubdir /builder/PR/en --publish
- git rev-parse HEAD > /LDP/PR/last-commit-id.txt
- date > /LDP/PR/build-date.txt
steps:
- name: Martin's builder - all revieved commits (full build)
- name: 🗃 Martin's builder - all revieved commits (full build)
image: tldp/builder:latest
volumes:
- name: LDP
@ -42,9 +47,8 @@ steps:
- mkdir -p /builder/src/BUILD
- mkdir -p /builder/src/PUBDIR
- ldptool --loglevel info --builddir /builder/src/BUILD --configfile .github/builder.ldptool.cfg --pubdir /builder/src/PUBDIR --list
- ldptool --loglevel info --builddir /builder/src/BUILD --configfile .github/builder.ldptool.cfg --pubdir /builder/src/PUBDIR --publish
- rm -rf /LDP/en
- rsync -av /builder/src/PUBDIR/ /LDP/en
- ionice -c 3 chrt --idle 0 ldptool --loglevel info --builddir /builder/src/BUILD --configfile .github/builder.ldptool.cfg --pubdir /builder/src/PUBDIR --publish
- rsync -av --delete-after /builder/src/PUBDIR/ /LDP/en
- git rev-parse HEAD > /LDP/last-commit-id.txt
- date > /LDP/build-date.txt