2024-09-02 14:51:10 +00:00
|
|
|
steps:
|
2022-11-25 18:38:51 +00:00
|
|
|
prepare-dev:
|
|
|
|
image: debian
|
|
|
|
commands:
|
|
|
|
- sed -i -r -e 's/queerscriptors\.org/dev\.queerscriptors\.org/g' website.lektorproject
|
|
|
|
when:
|
|
|
|
branch: dev
|
2022-08-23 23:22:52 +00:00
|
|
|
build:
|
2022-08-24 00:17:20 +00:00
|
|
|
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
|
2022-11-18 21:36:55 +00:00
|
|
|
- wget https://gitlab.torproject.org/tpo/web/lego/-/raw/main/lektor-requirements.txt -O requirements.txt
|
2022-08-27 13:24:42 +00:00
|
|
|
- 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
|
2022-09-04 13:48:34 +00:00
|
|
|
- lektor build --output-path public -f scss
|
2022-09-04 08:17:31 +00:00
|
|
|
- rm -r public
|
2022-09-04 13:48:34 +00:00
|
|
|
- lektor build --output-path public -f scss
|
2022-09-04 14:02:35 +00:00
|
|
|
- lektor build --output-path public -f scss
|
2022-08-26 20:03:07 +00:00
|
|
|
publish:
|
|
|
|
image: debian
|
|
|
|
commands:
|
2023-02-12 00:18:44 +00:00
|
|
|
- rm -r /var/www/queer/main/*
|
|
|
|
- cp -r public/* /var/www/queer/main/
|
2023-02-19 16:20:21 +00:00
|
|
|
- cp -r i18n/ /var/www/queer/main/i18n/
|
2022-08-26 20:03:07 +00:00
|
|
|
volumes:
|
2023-02-12 00:18:44 +00:00
|
|
|
- /var/www/queer/main/:/var/www/queer/main/
|
2022-10-27 22:18:37 +00:00
|
|
|
when:
|
|
|
|
branch: main
|
|
|
|
publish-dev:
|
|
|
|
image: debian
|
|
|
|
commands:
|
2023-01-31 14:18:00 +00:00
|
|
|
- rm -r /var/www/queer/dev/*
|
|
|
|
- cp -r public/* /var/www/queer/dev/
|
|
|
|
- cp -r i18n/ /var/www/queer/dev/i18n/
|
2022-10-27 22:18:37 +00:00
|
|
|
volumes:
|
2023-01-31 14:18:00 +00:00
|
|
|
- /var/www/queer/dev/:/var/www/queer/dev/
|
2022-10-27 22:18:37 +00:00
|
|
|
when:
|
2022-10-27 22:33:43 +00:00
|
|
|
branch:
|
|
|
|
exclude: main
|