add commit footer for docker

This commit is contained in:
pedro 2024-10-18 10:45:08 +02:00
parent 03b9c5fea8
commit f87897de85
2 changed files with 4 additions and 1 deletions

View file

@ -14,7 +14,6 @@ EMAIL_USE_TLS=True
EMAIL_BACKEND="django.core.mail.backends.smtp.EmailBackend"
EMAIL_FILE_PATH="/tmp/app-messages"
ENABLE_EMAIL=false
COMMIT=$(git log --format="%H %ad" --date=iso -n 1)
PREDEFINED_TOKEN='5018dd65-9abd-4a62-8896-80f34ac66150'
# TODO review these vars
#SNAPSHOTS_DIR=/path/to/TODO

View file

@ -12,6 +12,10 @@ check_app_is_there() {
}
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
./manage.py print_settings
fi