movieclub/.drone.yml
Michal Kunc 9230c35be6
All checks were successful
continuous-integration/drone/push Build is passing
Make install quiet
2023-02-17 15:44:04 +01:00

32 lines
677 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: test
image: python:3.10
commands:
- pip3 install poetry --quiet
- poetry install --no-root --quiet
- export SECRET_KEY=$(openssl rand -hex 32)
- export DATABASE_URL=sqlite://$(mktemp)/db.sqlite3
- poetry run ./manage.py test
environment:
ALLOWED_HOSTS: localhost,127.0.0.1
DEBUG: True
- name: deploy
image: caprover/cli-caprover:2.2.3
commands:
- caprover deploy
environment:
CAPROVER_URL:
from_secret: caprover_url
CAPROVER_APP:
from_secret: caprover_app
CAPROVER_APP_TOKEN:
from_secret: app_token
CAPROVER_BRANCH: main
when:
branch:
- main