2 Commits

Author SHA1 Message Date
4e98292160 Fix Push Script
All checks were successful
Build and push Docker images on git tags / build (push) Successful in 38s
2024-11-20 13:08:28 +01:00
aae167cf11 Fix DB issues with Python 3.12
All checks were successful
Build and push Docker images on git tags / build (push) Successful in 40m1s
2024-11-20 12:03:38 +01:00
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
name: Build and push Docker image at git tag
name: Build and push Docker images on git tags
on:
push:
tags:

View File

@ -20,7 +20,8 @@ day_tag=$(date '+%Y-%m-%d')
images_a=$(docker image ls "$IMAGE_REGISTRY/$IMAGE_OWNER/$IMAGE_NAME_AGENT" --format '{{.Repository}}:{{.Tag}}')
images_b=$(docker image ls "$IMAGE_REGISTRY/$IMAGE_OWNER/$IMAGE_NAME_MGMT" --format '{{.Repository}}:{{.Tag}}')
echo "$images_a\n$images_b" | while read image_url ;
echo "$images_a
$images_b" | while read image_url ;
do
image_name="${image_url##*/}"

View File

@ -26,7 +26,8 @@ class DB():
def __init__(self):
self.db = sqlite3.connect(
os.path.join(PERSIST_PATH, 'messages.db'),
check_same_thread=False
check_same_thread=False,
autocommit=False
)
self.db.row_factory = sqlite3.Row
atexit.register(lambda db : db.close(), self.db)
@ -192,5 +193,3 @@ class DB():
)
except:
return None