Skip to content

Commit 2602f32

Browse files
committed
refactor: Add info logs
1 parent d5eec09 commit 2602f32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/call_receiver/app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ def call_flux_webhook(repository, image_tag):
7373
headers = {'Authorization': f'Bearer {token}'}
7474
if regex and re.match(regex, image_tag):
7575
make_requests(webhook, repository, headers)
76+
else:
77+
print(json.dumps({
78+
'message': f'The {image_tag} tag does not match the regular expresion ({regex})',
79+
'repository': repository
80+
}))
7681

7782

7883
def lambda_handler(event, context):

0 commit comments

Comments
 (0)