LDP/.github/drone.yml

56 lines
1.5 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
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-08 16:31:05 +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
- mkdir -p /builder/src/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
steps:
- name: Martin's builder - all revieved commits (full build)
image: tldp/builder:latest
volumes:
- name: LDP
path: /LDP
when:
event:
exclude:
- pull_request
commands:
- ldptool --dump-cfg
- rm -rf /LDP/en
2024-01-08 16:33:50 +00:00
- mkdir /LDP/en
2024-01-08 16:31:05 +00:00
- mkdir -p /builder/src/BUILD
- ldptool --loglevel info --builddir /builder/src/BUILD --configfile .github/builder.ldptool.cfg --pubdir /LDP/en --list
- ldptool --loglevel info --builddir /builder/src/BUILD --configfile .github/builder.ldptool.cfg --pubdir /LDP/en --publish
- 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.