Queerscriptors.org/.woodpecker.yml

32 lines
1.3 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-27 15:10:46 +00:00
- apt-get update
2022-08-27 13:24:42 +00:00
- apt-get install -y git gettext ca-certificates wget python3-pip
- 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 21:59:26 +00:00
- rm -rf i18n
2022-09-04 08:20:14 +00:00
- git clone https://lab.encryptionin.space/Queerscriptors/weblate-website.git i18n
- lektor build --output-path public -f scss
2022-09-04 08:17:31 +00:00
- rm -r public
- lektor build --output-path public -f scss
- lektor build --output-path public -f scss
- lektor build --output-path public -f scss
2022-08-26 20:03:07 +00:00
publish:
image: debian
commands:
2022-08-27 11:59:10 +00:00
- rm -r /var/www/queerscriptors/*
- cp -r public/* /var/www/queerscriptors/
2022-09-24 13:38:48 +00:00
- cp -r i18n/ /var/www/queerscriptors/i18n/
2022-08-26 20:03:07 +00:00
volumes:
- /var/www/queerscriptors:/var/www/queerscriptors
#check_l10n_freshness:
# image: debian:bullseye
# commands:
# - apt-get update
# - 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'
# - l10n/check_po_status.py main