From 58d87841e65844153d66cc6e091b648cf8a6ce5e Mon Sep 17 00:00:00 2001 From: Dr Serge Victor Date: Tue, 9 Jan 2024 09:39:48 +0700 Subject: [PATCH] droning.... --- .github/drone.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/drone.yml b/.github/drone.yml index 43f7d6fb..69e71259 100644 --- a/.github/drone.yml +++ b/.github/drone.yml @@ -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