28 lines
537 B
YAML
28 lines
537 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
image: python:3.10
|
|
commands:
|
|
- pip3 install poetry
|
|
- poetry install --no-root
|
|
- export SECRET_KEY=$(openssl rand -hex 32)
|
|
- poetry run ./manage.py test
|
|
- 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
|