Newer
Older
image: python:3.10-alpine
pages:
stage: deploy
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
artifacts:
paths:
- public
expire_in: 3 day
rules:
- if: $CI_COMMIT_BRANCH == "main"
- python -m venv .venv
- source .venv/bin/activate
- pip install -r requirements.txt
- pip install git+https://github.com/Epithumia/mkdocs-sqlite-console.git
- find public -type f | wc -l
- du -sh public
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} +
- du -sh public