LDP/.github/drone.yml

65 lines
1.9 KiB
YAML
Raw Normal View History

2024-01-07 17:03:59 +00:00
# (C) Serge Victor 2020-2024, GPLv3 License
2024-01-07 08:40:51 +00:00
#
# recently build version of documents is available on permanent storage disk mounted on /LDP
2024-01-09 02:39:48 +00:00
#
# this file is protected, DO NOT TAMPER without permission from LDP authorised maintainers!
# contact us or create an issue before thinking about any changes.
2024-01-09 10:11:28 +00:00
# #
2024-01-07 08:40:51 +00:00
kind: pipeline
type: docker
name: 🗃 LDP Builder
2024-01-07 17:03:59 +00:00
workspace:
path: /builder/src
2024-01-07 08:40:51 +00:00
steps:
2024-01-09 02:39:48 +00:00
- name: 🗃 Martin's builder - Pull Request only (partial build)
2024-01-07 08:40:51 +00:00
image: tldp/builder:latest
2024-01-08 04:17:04 +00:00
volumes:
2024-01-08 16:31:05 +00:00
- name: LDP
path: /LDP
when:
event:
include:
- pull_request
2024-01-07 08:40:51 +00:00
commands:
- ldptool --dump-cfg
2024-01-08 16:31:05 +00:00
- rm -rf /LDP/PR
2024-01-09 02:39:48 +00:00
- mkdir -p /LDP/PR/BUILD
2024-01-08 16:31:05 +00:00
- rsync -av /LDP/en /LDP/PR
2024-01-09 02:39:48 +00:00
- 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
2024-01-08 16:31:05 +00:00
steps:
2024-01-09 02:39:48 +00:00
- name: 🗃 Martin's builder - all revieved commits (full build)
2024-01-08 16:31:05 +00:00
image: tldp/builder:latest
volumes:
- name: LDP
path: /LDP
when:
event:
exclude:
- pull_request
2024-01-09 10:10:16 +00:00
branch:
include:
- master
2024-01-08 16:31:05 +00:00
commands:
- ldptool --dump-cfg
- mkdir -p /builder/src/BUILD
2024-01-08 16:46:34 +00:00
- mkdir -p /builder/src/PUBDIR
- ldptool --loglevel info --builddir /builder/src/BUILD --configfile .github/builder.ldptool.cfg --pubdir /builder/src/PUBDIR --list
2024-01-09 02:39:48 +00:00
- 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
2024-01-08 16:31:05 +00:00
- git rev-parse HEAD > /LDP/last-commit-id.txt
- date > /LDP/build-date.txt
2024-01-08 04:17:04 +00:00
volumes:
2024-01-08 16:31:05 +00:00
- name: LDP
2024-01-08 04:20:07 +00:00
host:
2024-01-08 16:31:05 +00:00
path: /LDP
2024-01-08 04:17:04 +00:00
# the happy end.