steps: 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 when: - event: push publish: image: debian commands: - rm -r /var/www/comlib/* - cp -r public/* /var/www/comlib/ volumes: - /var/www/comlib/:/var/www/comlib/ when: - event: push