Skip to main content

Continuous deloyment

Project description

django-cd

GitHub Workflow Status PyPI

Continuous deployment

Installation

git clone git@github.com/ppinard/django-cd.git
cd django-cd
pip install -e .

Django - settings.py

Add to INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    "django_bootstrap5",
    "django_cd",
]

Add to settings.py:

ACTIONS = {
    "command": "django_cd.actions.CommandAction",
    "git-checkout": "django_cd.actions.GitCheckoutAction",
    "python-run": "django_cd.actions.PythonAction",
    "python-pytest": "django_cd.actions.PythonPytestAction",
    "python-venv": "django_cd.actions.PythonVirtualEnvAction",
}
TRIGGERS = {
    "cron": "django_cd.triggers.CronTrigger",
}
NOTIFICATIONS = {
    "email": "django_cd.notifications.EmailNotification",
}

JOBFILES = []
WORKDIR = ""

License

The library is provided under the MIT license license.

Copyright (c) 2021, Philippe Pinard

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-cd-1.2.tar.gz (34.6 kB view hashes)

Uploaded Source

Built Distribution

django_cd-1.2-py3-none-any.whl (19.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page