This commit is contained in:
@@ -3,6 +3,15 @@ when:
|
||||
event: [push, manual]
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: python:3.12-slim
|
||||
commands:
|
||||
- pip install --quiet -r requirements.txt
|
||||
- python manage.py test backlogger --verbosity=2
|
||||
environment:
|
||||
DJANGO_SECRET_KEY: ci-test-key
|
||||
DATABASE_URL: sqlite:///tmp/test.db
|
||||
|
||||
build-and-deploy:
|
||||
image: docker:cli
|
||||
volumes:
|
||||
@@ -13,3 +22,4 @@ steps:
|
||||
- cp -r . /opt/services/app/
|
||||
- docker build -t k-boris-website /opt/services/app/
|
||||
- docker compose -f /opt/services/docker-compose.yml up -d --no-deps django
|
||||
depends_on: [test]
|
||||
|
||||
Reference in New Issue
Block a user