Include release metadata during github build

This commit is contained in:
dgtlmoon
2021-05-28 10:20:23 +10:00
parent 5d93009605
commit dd211d166c
3 changed files with 10 additions and 10 deletions

View File

@@ -63,8 +63,8 @@ class ChangeDetectionStore:
'notification_urls': [] # List of URLs to add to the notification Queue (Usually AppRise)
}
if path.isfile('/source.txt'):
with open('/source.txt') as f:
if path.isfile('backend/source.txt'):
with open('backend/source.txt') as f:
# Should be set in Dockerfile to look for /source.txt , this will give us the git commit #
# So when someone gives us a backup file to examine, we know exactly what code they were running.
self.__data['build_sha'] = f.read()