From f08033f8865dbe77c8fc15b9c8c2a6a066be5267 Mon Sep 17 00:00:00 2001 From: mtyton Date: Mon, 11 Sep 2023 22:15:48 +0200 Subject: [PATCH] added woodpecker settings --- artel/.woodpecker/.build.yml | 22 ++++++++++++++++++++++ artel/.woodpecker/.deploy.yml | 0 artel/artel/settings/tests.py | 18 ++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 artel/.woodpecker/.build.yml create mode 100644 artel/.woodpecker/.deploy.yml create mode 100644 artel/artel/settings/tests.py diff --git a/artel/.woodpecker/.build.yml b/artel/.woodpecker/.build.yml new file mode 100644 index 0000000..0985a65 --- /dev/null +++ b/artel/.woodpecker/.build.yml @@ -0,0 +1,22 @@ + +steps: + build: + image: debian + secrets: [] + commands: + - docker-compose -f artel/docker-compose-test.yml build + volumes: + - /var/run/docker.sock:/var/run/docker.sock + when: + event: pull_request + branch: ${CI_REPO_DEFAULT_BRANCH} + test: + image: debian + secrets: [] + commands: + - docker-compose -f artel/docker-compose-test.yml run --rm test_comfy + volumes: + - /var/run/docker.sock:/var/run/docker.sock + when: + event: pull_request + branch: ${CI_REPO_DEFAULT_BRANCH} diff --git a/artel/.woodpecker/.deploy.yml b/artel/.woodpecker/.deploy.yml new file mode 100644 index 0000000..e69de29 diff --git a/artel/artel/settings/tests.py b/artel/artel/settings/tests.py new file mode 100644 index 0000000..41c6b42 --- /dev/null +++ b/artel/artel/settings/tests.py @@ -0,0 +1,18 @@ +from .base import * + +# SECURITY WARNING: define the correct hosts in production! +ALLOWED_HOSTS = ["*"] + +EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +EMAIL_HOST = "smtp-server" +EMAIL_HOST_USER = None +EMAIL_HOST_PASSWORD = None +EMAIL_PORT = 1025 +EMAIL_USE_TLS = False +DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL', 'mtyton@tepewu.pl') + + +try: + from .local import * +except ImportError: + pass