Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
4e98292160
|
|||
aae167cf11
|
@ -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:
|
||||
|
@ -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##*/}"
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user