- moving builder into new infrastruvture. #112 #107

This commit is contained in:
ᎠᎡ. Ѕϵrgϵ Ѵictor
2025-02-19 16:06:04 +07:00
parent acf85f854d
commit 6728a16800
3 changed files with 12 additions and 83 deletions

70
.github/.drone.yml vendored
View File

@@ -1,70 +0,0 @@
---
# (C) Serge Victor 2020-2024, GPLv3 License
#
# https://drone.tldp.org
#
# 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 - 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
- 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
...

11
.github/README.md vendored
View File

@@ -1,5 +1,4 @@
Documentation | [![Build Status](https://drone.tldp.org/api/badges/tLDP/LDP/status.svg)](https://drone.tldp.org/tLDP/LDP)
[![status-badge](https://builder-github.tldp.org/api/badges/3/status.svg)](https://builder-github.tldp.org/repos/3)
---
![LDP Logo](https://tldp.org/images/ldp.gif)
@@ -15,7 +14,7 @@ Please take a part in our efforts.
* Fork our repository
* Update documents and/or correct/extend existing ones in your forked repository
* Submit a Pull Request (if you do not know how, read for example: https://yangsu.github.io/pull-request-tutorial/)
* Check if our builder successfully renders your submission - if not, check why and resubmit
* Check if your document is correctly rendered on https://tldp.org/test/ after builder shows you green light - if not, check why and resubmit
* One of our admins will review your work
* Publication on https://tldp.org/ is live :+1:
* We will preliminary check your submission and run our builder to verify if it can be published.
* One of our admins will make a final review of your work - please be patient as it's not an automatic process.
* Watch your PR, we will notify in comments if we need your cooperation.
* Publication on https://tldp.org/ is live - thanks! :+1:

View File

@@ -1,8 +1,8 @@
[ldptool]
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/
sourcedir = /woodpecker/src/github.com/ser/LDP/LDP/faq/linuxdoc/,
/woodpecker/src/github.com/ser/LDP/LDP/guide/linuxdoc/,
/woodpecker/src/github.com/ser/LDP/LDP/howto/linuxdoc/,
/woodpecker/src/github.com/ser/LDP/LDP/howto/docbook/,
/woodpecker/src/github.com/ser/LDP/LDP/guide/docbook/,
/woodpecker/src/github.com/ser/LDP/LDP/ref/docbook/,
/woodpecker/src/github.com/ser/LDP/LDP/faq/docbook/