feat: сборка в контейнеры

This commit is contained in:
Artem Tsyrulnikov
2025-11-10 17:48:34 +03:00
parent 0bed5c266d
commit 3c430885fe
6 changed files with 66 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import logging
import os
import subprocess
import sys
@@ -10,6 +11,8 @@ from .json_formatter import JSONFormatter
def get_git_commit() -> str:
if commit := os.getenv('GIT_COMMIT'):
return commit
try:
return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'], text=True).strip()
except Exception: