add commit footer for docker
This commit is contained in:
parent
03b9c5fea8
commit
f87897de85
|
@ -14,7 +14,6 @@ EMAIL_USE_TLS=True
|
||||||
EMAIL_BACKEND="django.core.mail.backends.smtp.EmailBackend"
|
EMAIL_BACKEND="django.core.mail.backends.smtp.EmailBackend"
|
||||||
EMAIL_FILE_PATH="/tmp/app-messages"
|
EMAIL_FILE_PATH="/tmp/app-messages"
|
||||||
ENABLE_EMAIL=false
|
ENABLE_EMAIL=false
|
||||||
COMMIT=$(git log --format="%H %ad" --date=iso -n 1)
|
|
||||||
PREDEFINED_TOKEN='5018dd65-9abd-4a62-8896-80f34ac66150'
|
PREDEFINED_TOKEN='5018dd65-9abd-4a62-8896-80f34ac66150'
|
||||||
# TODO review these vars
|
# TODO review these vars
|
||||||
#SNAPSHOTS_DIR=/path/to/TODO
|
#SNAPSHOTS_DIR=/path/to/TODO
|
||||||
|
|
|
@ -12,6 +12,10 @@ check_app_is_there() {
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
|
# TODO this is weird, find better workaround
|
||||||
|
git config --global --add safe.directory /opt/devicehub-django
|
||||||
|
export COMMIT=$(git log --format="%H %ad" --date=iso -n 1)
|
||||||
|
|
||||||
if [ "${DEBUG:-}" = 'true' ]; then
|
if [ "${DEBUG:-}" = 'true' ]; then
|
||||||
./manage.py print_settings
|
./manage.py print_settings
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue