Include the triggered build SHA as part of the backup info, when built in docker hub.

This commit is contained in:
Leigh Morresi
2021-02-02 18:32:18 +01:00
parent 37b070f5a0
commit 084dcde410
3 changed files with 14 additions and 1 deletions

View File

@@ -268,6 +268,10 @@ def get_backup():
with zipfile.ZipFile(os.path.join("/datastore", backupname), 'w', compression=zipfile.ZIP_DEFLATED,
compresslevel=6) as zipObj:
# Be sure we're written fresh
datastore.sync_to_json()
# Add the index
zipObj.write(os.path.join("/datastore", "url-watches.json"))
# Add any snapshot data we find