Queerscriptors.org/.woodpecker.yml

33 lines
1.2 KiB
YAML
Raw Normal View History

2022-08-26 18:19:40 +00:00
pipeline:
2022-08-23 23:22:52 +00:00
build:
image: python:3.8-bullseye
2022-08-23 23:22:52 +00:00
commands:
2022-08-24 00:07:28 +00:00
- apt-get update
2022-08-26 20:03:07 +00:00
- apt-get install -y git ca-certificates gettext wget python3-pip python3-babel
- wget https://gitlab.torproject.org/tpo/tpa/ci-templates/-/raw/main/lektor-requirements.txt -O requirements.txt
- python3 -m pip install --require-hashes -r requirements.txt
2022-08-26 18:22:14 +00:00
- lektor build --output-path public
2022-08-26 20:03:07 +00:00
publish:
image: debian
commands:
- cp -r public/* /var/www/queerscriptors/
volumes:
- /var/www/queerscriptors:/var/www/queerscriptors
2022-08-26 19:30:09 +00:00
check_l10n_freshness:
2022-08-26 20:03:07 +00:00
image: python:3.8-bullseye
commands:
- apt-get install gettext git python3-dev python3-setuptools i18nspector python3-polib python3-requests ca-certificates apt-utils -y
- git clone https://lab.encryptionin.space/Queerscriptors/l10n.git
- echo 'lets see if there are any updates in the strings for translation'
2022-08-26 20:07:21 +00:00
- l10n/check_po_status.py main
2022-08-26 20:03:07 +00:00
send_discord_message:
2022-08-26 19:38:19 +00:00
image: appleboy/drone-discord
2022-08-26 19:30:09 +00:00
settings:
webhook_id:
2022-08-26 19:34:44 +00:00
from_secret: discord_id
2022-08-26 19:30:09 +00:00
webhook_token:
2022-08-26 19:34:44 +00:00
from_secret: discord_token
2022-08-26 20:03:07 +00:00
message: "The lektor build has different pot than weblate-website"
when:
- status: [ failure ]