34 lines
672 B
YAML
34 lines
672 B
YAML
kind: pipeline
|
|
name: default
|
|
type: docker
|
|
|
|
steps:
|
|
- name: lint
|
|
image: python:3.11.1
|
|
commands:
|
|
- poetry install
|
|
- poetry run flake8
|
|
- poetry run mypy
|
|
- name: books
|
|
image: python:3.11.1
|
|
commands:
|
|
- poetry install --without dev
|
|
- poetry run python books.py
|
|
- name: pdf
|
|
image: linuxserver/calibre
|
|
commands:
|
|
- bash -x convert.sh
|
|
- bash -x upload.sh
|
|
environment:
|
|
USERNAME:
|
|
from_secret: nextcloud_user
|
|
PASSWORD:
|
|
from_secret: nextcloud_password
|
|
QTWEBENGINE_CHROMIUM_FLAGS: --no-sandbox
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
- cron
|