Added deploy rule to Makefile (used as deploy pipeline for CI/CD)
All checks were successful
buildbot/django-dav-events--test Build done.
All checks were successful
buildbot/django-dav-events--test Build done.
This commit is contained in:
15
Makefile
15
Makefile
@@ -1,9 +1,20 @@
|
|||||||
.PHONY: default help test
|
PYTHON := python
|
||||||
|
|
||||||
|
DEPLOY_DIR ?= /var/www/wsgi/django-dav-events
|
||||||
|
|
||||||
|
.PHONY: default help test deploy
|
||||||
|
|
||||||
default: help
|
default: help
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "The make stuff is used by our CI/CD environment."
|
@echo "The make stuff is used by our CI/CD buildbot."
|
||||||
|
|
||||||
test:
|
test:
|
||||||
tox
|
tox
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
git -C "$(DEPLOY_DIR)/src/django-dav-events" pull
|
||||||
|
"$(DEPLOY_DIR)/python/bin/python" "$(DEPLOY_DIR)/django/manage.py" migrate --noinput
|
||||||
|
"$(DEPLOY_DIR)/python/bin/python" "$(DEPLOY_DIR)/django/manage.py" collectstatic --noinput
|
||||||
|
touch "$(DEPLOY_DIR)/django/main/wsgi.py"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user