2024-01-24 02:04:54 +00:00
|
|
|
steps:
|
2023-06-11 00:04:07 +00:00
|
|
|
build:
|
|
|
|
image: python:3.8-bullseye
|
|
|
|
commands:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y git gettext ca-certificates wget python3-pip
|
|
|
|
- wget https://gitlab.torproject.org/tpo/web/lego/-/raw/main/lektor-requirements.txt -O requirements.txt
|
|
|
|
- python3 -m pip install --require-hashes -r requirements.txt
|
|
|
|
- lektor build --output-path public
|
|
|
|
publish:
|
|
|
|
image: debian
|
|
|
|
commands:
|
|
|
|
- rm -r /var/www/comlib/*
|
|
|
|
- cp -r public/* /var/www/comlib/
|
|
|
|
volumes:
|
|
|
|
- /var/www/comlib/:/var/www/comlib/
|
|
|
|
when:
|
|
|
|
branch: main
|