Skip to content

Commit

Permalink
- restoring builder #112
Browse files Browse the repository at this point in the history
  • Loading branch information
ser committed Jan 10, 2024
1 parent e93b0b0 commit a9018dc
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 122 deletions.
71 changes: 60 additions & 11 deletions .github/.drone.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,70 @@
# (C) Serge Victor 2020, GPLv3 License
---
# (C) Serge Victor 2020-2024, GPLv3 License
#
# https://drone.tldp.org
#
# recently build version of documents is available on permanent storage disk mounted on /LDP
# 1) this file is protected, DO NOT TAMPER without permission from LDP authorised maintainers!
#
# 2) contact us or create an issue before thinking about any changes.

kind: pipeline
type: docker
name: 🗃 LDP Builder

workspace:
path: /builder/src

steps:
- name: Martin's builder
- name: 🗃 Martin's builder - Pull Request only (partial build)
image: tldp/builder:latest
volumes:
- name: LDP
path: /LDP
when:
event:
include:
- pull_request
commands:
- ldptool --dump-cfg
- rm -rf /LDP/PR
- mkdir -p /LDP/PR/BUILD
- rsync -av /LDP/en /LDP/PR
- ldptool --loglevel info --builddir /LDP/PR/BUILD --configfile .github/builder.ldptool.cfg --pubdir /LDP/PR/en --list
- ionice -c 3 chrt --idle 0 ldptool --loglevel info --builddir /LDP/PR/BUILD --configfile .github/builder.ldptool.cfg --pubdir /LDP/PR/en --publish
- git rev-parse HEAD > /LDP/PR/last-commit-id.txt
- date > /LDP/PR/build-date.txt

- 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/BUILD
- rm -rf /LDP/MAIN
- mkdir -p /LDP/BUILD
- mkdir -p /LDP/MAIN
- rsync -av /LDP/WWW/en/ /LDP/MAIN
- ldptool --loglevel info --builddir /LDP/BUILD --configfile .github/builder-pr.ldptool.cfg --pubdir /LDP/MAIN --list
- ldptool --loglevel info --builddir /LDP/BUILD --configfile .github/builder-pr.ldptool.cfg --pubdir /LDP/MAIN --publish
- rsync -av --delete-after /LDP/MAIN/ /LDP/WWW/en
- 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
- 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

volumes:
- name: LDP
host:
path: /LDP

trigger:
branch:
- master

# the happy end.
---
kind: signature
hmac: 45cf4fbf1b8f52a9096a444fb68ff415d101cab7812358bc0951ac87fadc7587

...
5 changes: 1 addition & 4 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
Builder | State
:--- | ---:
Documentation | [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FtLDP%2FLDP%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/tLDP/LDP/goto?ref=master)
Pull Requests | [![Build Status](https://drone.tldp.org/api/badges/tLDP/LDP/status.svg)](https://drone.tldp.org/tLDP/LDP)
Documentation | [![Build Status](https://drone.tldp.org/api/badges/tLDP/LDP/status.svg)](https://drone.tldp.org/tLDP/LDP)

---

Expand Down
8 changes: 0 additions & 8 deletions .github/builder-pr.ldptool.cfg

This file was deleted.

14 changes: 7 additions & 7 deletions .github/builder.ldptool.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[ldptool]
sourcedir = /home/runner/work/LDP/LDP/LDP/faq/linuxdoc/,
/home/runner/work/LDP/LDP/LDP/guide/linuxdoc/,
/home/runner/work/LDP/LDP/LDP/howto/linuxdoc/,
/home/runner/work/LDP/LDP/LDP/howto/docbook/,
/home/runner/work/LDP/LDP/LDP/guide/docbook/,
/home/runner/work/LDP/LDP/LDP/ref/docbook/,
/home/runner/work/LDP/LDP/LDP/faq/docbook/
sourcedir = /builder/src/LDP/faq/linuxdoc/,
/builder/src/LDP/guide/linuxdoc/,
/builder/src/LDP/howto/linuxdoc/,
/builder/src/LDP/howto/docbook/,
/builder/src/LDP/guide/docbook/,
/builder/src/LDP/ref/docbook/,
/builder/src/LDP/faq/docbook/
92 changes: 0 additions & 92 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit a9018dc

Please sign in to comment.